CCTimerSourceUsed to be part of CCFuture.
A scheduler for events. It runs in its own thread.
set_exn_handler timer f registers f so that any exception raised by a task scheduled in timer is given to f.
Call the callback f after the given number of seconds.
Create a future that evaluates to () at the given Unix timestamp.
every timer n ~f calls f () every n seconds. f() can raise ExitEvery to stop the cycle.
Stop the given timer, cancelling pending tasks. Idempotent. From now on, calling most other operations on the timer will raise Stopped.