summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2022-08-18 12:03:23 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2022-08-18 12:03:23 (GMT)
commit41e8f7c84390f1ed0ef602aba40544b6b2f383da (patch)
treebb0ec7b3fe85041ed317ae29107494ace6d4fd07 /doc
parent333f084b63b2fabca453da486b7879e1b6b6cf51 (diff)
downloadtcl-41e8f7c84390f1ed0ef602aba40544b6b2f383da.zip
tcl-41e8f7c84390f1ed0ef602aba40544b6b2f383da.tar.gz
tcl-41e8f7c84390f1ed0ef602aba40544b6b2f383da.tar.bz2
Ticket [a11678b759]: improve after documentation for time <= 0.
Diffstat (limited to 'doc')
-rw-r--r--doc/after.n4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/after.n b/doc/after.n
index 3d0d2c4..1a814e0 100644
--- a/doc/after.n
+++ b/doc/after.n
@@ -33,6 +33,7 @@ depending on the first argument to the command:
\fBafter \fIms\fR
.
\fIMs\fR must be an integer giving a time in milliseconds.
+A negative number is treated as 0.
The command sleeps for \fIms\fR milliseconds and then returns.
While the command is sleeping the application does not respond to
events.
@@ -52,6 +53,9 @@ the background error will be reported by the command
registered with \fBinterp bgerror\fR.
The \fBafter\fR command returns an identifier that can be used
to cancel the delayed command using \fBafter cancel\fR.
+A \fIms\fR value of 0 (or negative) queues the event immediately with
+priority over other event types (if not installed withn an event proc,
+which will wait for next round of events).
.TP
\fBafter cancel \fIid\fR
.