lib/js/timer.jsx

Timer utilities available both on browsers and node.js

final class Timer

new Timer()

static function setTimeout(callback : function () : void, intervalMS : number) : TimerHandle

static function clearTimeout(timer : TimerHandle) : void

static function setInterval(callback : function () : void, intervalMS : number) : TimerHandle

static function clearInterval(timer : TimerHandle) : void

static function requestAnimationFrame(callback : function (:number) : void) : TimerHandle

static function cancelAnimationFrame(timer : TimerHandle) : void

static function useNativeRAF(enable : boolean) : void

final class TimerHandle

Implementation-defined object which setTimeout() and setInterval() return.