SkipJack is a utility to run a function in the background repeatedly, that survive cmd-period.
A typical use is with a window displaying the state of some objects every now and then. (This is better in some cases than updating the GUI at every change. If the changes happen fast, you don't choke your CPU on gui updating.)
But SkipJack is useful whenever you need a periodic function to run in the background and not go away if the user hits cmd-period.
A Function to repeat in the background.
The time interval at which to repeat. It can also be a stream or a function that returns a number.
A test whether to stop the task now. Usually a Function.
A name for this skipjack. Used for posting information and in the *stop classmethod.
The clock that plays the task. Default is AppClock, so SkipJack can call GUI primitives. If you need more precise timing, you can supply your own clock, and use defer only where necessary.
When true (default) SkipJack starts automatically as it is created.
Stop a skipjack by name.
Stop all skipjacks.
The default clock (AppClock)
When true, SkipJack posts messages when it starts, stops or restarts.
The global set of all skipjacks.
Get or set the time interval.
The internal Routine that wraps updateFunc.
The name of this skipjack.
The current stopTest. (see argument in *new )
Start this skipjack.
Stop this skipjack.
Get or set the clock used. This will only be updated when the skipjack restarts.
The updateFunc set by the argument to *new
Typical use: SkipJack updates a window displaying the state of some objects every now and then.
If you need to get rid of an unreachable skipjack: