Package

io.scalajs.nodejs

timers

Permalink

package timers

Visibility
  1. Public
  2. All

Type Members

  1. trait ClearImmediate extends Object

    Permalink

    Stops an immediateObject, as created by setImmediate, from triggering.

    Stops an immediateObject, as created by setImmediate, from triggering.

    Annotations
    @RawJSType() @native()
    Example:
    1. clearImmediate(immediateObject)

  2. trait ClearInterval extends Object

    Permalink

    Stops an intervalObject, as created by setInterval, from triggering.

    Stops an intervalObject, as created by setInterval, from triggering.

    Annotations
    @RawJSType() @native()
    Example:
    1. clearInterval(intervalObject)

  3. trait ClearTimeout extends Object

    Permalink

    Prevents a timeoutObject, as created by setTimeout, from triggering.

    Prevents a timeoutObject, as created by setTimeout, from triggering.

    Annotations
    @RawJSType() @native()
    Example:
    1. clearTimeout(timeoutObject)

  4. trait Immediate extends Object

    Permalink

    Immediate Handle

    Immediate Handle

    Annotations
    @RawJSType() @native()
  5. trait Ref extends Object

    Permalink

    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()
  6. trait SetImmediate extends Object

    Permalink

    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()
  7. trait SetInterval extends Object

    Permalink

    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()
  8. trait SetTimeout extends Object

    Permalink

    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()
  9. trait Timeout extends Object

    Permalink

    Timeout Handle

    Timeout Handle

    Annotations
    @RawJSType() @native()
  10. trait Timer extends Object

    Permalink

    Timer

    Timer

    Annotations
    @RawJSType() @native()
  11. trait UnRef extends Object

    Permalink

    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()

Value Members

  1. object Immediate

    Permalink

    Immediate Companion

  2. object Timeout

    Permalink

    Timeout Companion

Ungrouped