Stops an immediateObject, as created by setImmediate, from triggering.
Stops an intervalObject, as created by setInterval, from triggering.
Stops an intervalObject, as created by setInterval, from triggering.
clearInterval(intervalObject)
Prevents a timeoutObject, as created by setTimeout, from triggering.
Prevents a timeoutObject, as created by setTimeout, from triggering.
clearTimeout(timeoutObject)
Immediate Handle
Immediate Handle
If a timer was previously unref()d, then ref() can be called to explicitly request the timer hold the program open.
If a timer was previously unref()d, then ref() can be called to explicitly request the timer hold the program open. If the timer is already refd calling ref again will have no effect.
Schedules "immediate" execution of callback after I/O events' callbacks and before timers set by setTimeout and setInterval are triggered.
Schedules "immediate" execution of callback after I/O events' callbacks and before timers set by setTimeout and setInterval are triggered. Returns an immediateObject for possible use with clearImmediate. Additional optional arguments may be passed to the callback.
Schedules repeated execution of callback every delay milliseconds.
Schedules repeated execution of callback every delay milliseconds. Returns a intervalObject for possible use with clearInterval. Additional optional arguments may be passed to the callback.
Schedules execution of a one-time callback after delay milliseconds.
Schedules execution of a one-time callback after delay milliseconds. Returns a timeoutObject for possible use with clearTimeout. Additional optional arguments may be passed to the callback.
Timeout Handle
Timeout Handle
Timer
Timer
The opaque value returned by setTimeout and setInterval also has the method timer.unref() which allows the creation of a timer that is active but if it is the only item left in the event loop, it won't keep the program running.
The opaque value returned by setTimeout and setInterval also has the method timer.unref() which allows the creation of a timer that is active but if it is the only item left in the event loop, it won't keep the program running. If the timer is already unrefd calling unref again will have no effect.
Stops an immediateObject, as created by setImmediate, from triggering.
clearImmediate(immediateObject)