Static variables

staticread onlydueIn:Int

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

staticrepeat:Int

The timer repeat interval.

Static methods

@:noExprstaticagain(this:Timer):Result<NoData>

Restarts a timer.

@:noExprstaticinit(loop:Loop):Result<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.

@:noExprstaticstop(this:Timer):Result<NoData>

Stops a timer.