gk_schedule3gk
Support periodic execution of commands
Usage
gk_scheduletag command ?timer?
- gk_cancelScheduled tag
Overview
These commands allow you to deal with executing repetitive commands (such as move object messages) so that commands do not cause a backlog. Commands (such as an update) are added to a queue without duplicates, so only a single command will be executed within a given time interval (default 1/10 second).
This facility provides a convenient front end to Tk's after command, while avoiding queueing up multiple redundant messages.
Commands
gk_scheduletag command ?timer?-
Schedule
commandto be executed sometime in the future. If there is already a command with the sametag, do not add this command to the queue. By default, commands will be queued up to execute in 100 milliseconds, but this can be changed using thetimerparameter.
- gk_cancelScheduled tag
-
Cancel a previously scheduled command, identified by
tag, if it has not already been run.
Releases
Unchanged in 2 releases since Debian 1.2 (Rex).