Static variables

staticread onlydueIn:Int

Evaluates to the time until the timer expires, or zero if it has already expired.


The timer repeat interval.

Static methods


Restarts a timer.


Allocate and initialize an idle handle.

The handle should be cleaned up with eval.luv.Handle.close when no longer needed.

@:noExprstaticstart(this:Timer, callback:() ‑> Void, timeoutMs:Int, ?repeatMs:Int):Result<NoData>

Starts a timer.


Stops a timer.