Create and initialize a new wrapped uv_timer_t
handle.
Get or set the repeat value in milliseconds. The timer will be scheduled to run on the given interval, regardless of the callback execution duration, and will follow normal timer semantics in the case of a time-slice overrun.
Wrapper for uv_timer_set_repeat
and uv_timer_get_repeat
exposed as a writable JS property.
Stop the timer, and if it is repeating restart it using the repeat value as the timeout. If the timer has never been started before it throws UV_EINVAL.
Wrapper for uv_timer_again
.
Request handle to be closed.
Wrapper for uv_close
.
Returns true
if the handle referenced, false
otherwise.
Wrapper for uv_has_ref
.
Reference the handle.
Wrapper for uv_ref
.
Start the timer. timeout and repeat are in milliseconds.
If timeout is zero, the callback fires on the next event loop iteration. If repeat is non-zero, the callback fires first after timeout milliseconds and then repeatedly after repeat milliseconds.
Wrapper for uv_timer_start
.
Stop the timer, the callback will not be called anymore.
Wrapper for uv_timer_stop
.
Un-reference the handle.
Wrapper for uv_unref
.
Generated using TypeDoc
Timer handles are used to schedule callbacks to be called in the future.
Wrapper for
uv_timer_t
. See http://docs.libuv.org/en/v1.x/timer.html