Fathom v0.2

component fathom.timer

A set of APIs to manage timers.


Methods Returns Description
init( func, timeout, count ) void static This function establishes a callback to get invoked periodically, for up to a given number of times.
Seems it should be possible to have timers that trigger indefinitly.


  • func <function> The callback function to invoke when the timer goes off.
  • timeout <integer> The delay in milliseconds after which the timer triggers.
  • count <integer> The maximum number of times to invoke the timeout.