home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / tcl / tk3.3b1 / doc / after.n < prev    next >
Encoding:
Text File  |  1993-04-01  |  2.4 KB  |  64 lines

  1. '\"
  2. '\" Copyright (c) 1990 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/wish/man/RCS/after.n,v 1.11 93/04/01 09:52:08 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS after tk
  25. .BS
  26. '\" Note:  do not modify the .SH NAME line immediately below!
  27. .SH NAME
  28. after \- Execute a command after a time delay
  29. .SH SYNOPSIS
  30. \fBafter \fIms \fR?\fIarg1 arg2 arg3 ...\fR?
  31. .BE
  32.  
  33. .SH DESCRIPTION
  34. .PP
  35. This command is used to delay execution of the program or to execute
  36. a command in background after a delay.  The \fIms\fR argument gives
  37. a time in milliseconds.
  38. If \fIms\fR is the only argument to \fBafter\fR
  39. then the command sleeps for \fIms\fR milliseconds and returns.
  40. .VS
  41. While the command is sleeping the application does not respond to
  42. X events and other events.
  43. .VE
  44. .PP
  45. If additional arguments are
  46. present after \fIms\fR, then a Tcl command is formed by concatenating
  47. all the additional arguments in the same fashion as the \fBconcat\fR
  48. command.  \fBAfter\fR returns immediately but arranges for the command
  49. to be executed \fIms\fR milliseconds later in background.
  50. .VS
  51. The command will be executed at global level (outside the context
  52. of any Tcl procedure).
  53. .VE
  54. If an error occurs while executing the delayed command then the
  55. \fBtkerror\fR mechanism is used to report the error.
  56. .PP
  57. The \fBafter\fR command always returns an empty string.
  58.  
  59. .SH "SEE ALSO"
  60. tkerror
  61.  
  62. .SH KEYWORDS
  63. delay, sleep, time
  64.