The Glish system comes with a very modest number of clients. Source code for these clients resides in
the clients/ subdirectory of the Glish source tree; installing
Glish (see § 14.7, page
, below) includes installing these clients,
so they are generally available for use.
The available clients will grow with time and contributions are welcome. The clients presently available:
Anytime timer receives an interval event it interprets the event's value as a double value indicating the new timeout period. It then resets its timer and begins waiting for this new period of time. The original setting of -oneshot remains in effect.
If no initial time is specified when timer begins executing then it simply waits until it receives an interval event.
For example, the following generates a ready event approximately every 1.5 seconds:
t := client( "timer", 1.5 ) whenever t->ready do print "timer went off after", $value, "seconds"