From 8977e7375635cfcc0d9a3461efba4f28268a4b89 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Thu, 16 Sep 2010 09:45:52 +1000 Subject: Implement 'after ms' Signed-off-by: Steve Bennett --- jim_tcl.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'jim_tcl.txt') diff --git a/jim_tcl.txt b/jim_tcl.txt index af16a55..9deb38a 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -79,6 +79,7 @@ Since v0.62: 17. 'exec' now sets $::errorCode, and catch sets opts(-errorcode) for exit status 18. Command pipelines via open "|..." are now supported 19. Add 'info references' +20. Add support for 'after *ms*' Since v0.61: @@ -4058,15 +4059,18 @@ handler is removed. Time-based execution is also available via the eventloop API. ++*after* 'time'+:: + Sleeps for the given number of milliseconds. No events are processed during this time. + +*after* 'time script'+:: The script is executed after the given number of milliseconds have elapsed. Returns an event id. +*after cancel* 'id'+:: - Cancels an after event with the given event id. + Cancels an 'after' event with the given event id. +*vwait* 'variable'+:: - A call to vwait is required to enter the eventloop. 'vwait' processes events until + A call to 'vwait' is required to enter the eventloop. 'vwait' processes events until the named (global) variable changes. The variable need not exist beforehand. If there are no event handlers defined, 'vwait' returns immediately. -- cgit v1.1