package timers
- Alphabetic
- Public
- Protected
Type Members
- trait ClearImmediate extends Object
Stops an immediateObject, as created by setImmediate, from triggering.
Stops an immediateObject, as created by setImmediate, from triggering.
- Annotations
- @RawJSType() @native()
clearImmediate(immediateObject)
Example: - trait ClearInterval extends Object
Stops an intervalObject, as created by setInterval, from triggering.
Stops an intervalObject, as created by setInterval, from triggering.
- Annotations
- @RawJSType() @native()
clearInterval(intervalObject)
Example: - trait ClearTimeout extends Object
Prevents a timeoutObject, as created by setTimeout, from triggering.
Prevents a timeoutObject, as created by setTimeout, from triggering.
- Annotations
- @RawJSType() @native()
clearTimeout(timeoutObject)
Example: - trait Immediate extends Object
Immediate Handle
Immediate Handle
- Annotations
- @RawJSType() @native()
- trait Interval extends Object
Interval Handle
Interval Handle
- Annotations
- @RawJSType() @native()
- trait Ref extends Object
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.
- Annotations
- @RawJSType() @native()
- trait SetImmediate extends Object
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.
- Annotations
- @RawJSType() @native()
- trait SetInterval extends Object
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.
- Annotations
- @RawJSType() @native()
- trait SetTimeout extends Object
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.
- Annotations
- @RawJSType() @native()
- trait Timeout extends Object
Timeout Handle
Timeout Handle
- Annotations
- @RawJSType() @native()
- trait Timer extends Object
Timer
Timer
- Annotations
- @RawJSType() @native()
- trait UnRef extends Object
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.
- Annotations
- @RawJSType() @native()