Packages

t

io.scalajs.nodejs.timers

SetImmediate

trait SetImmediate extends Object

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()
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SetImmediate
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply(callback: Function, args: Any*): Immediate

    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.

    Callbacks for immediates are queued in the order in which they were created. The entire callback queue is processed every event loop iteration. If an immediate is queued from inside an executing callback, that immediate won't fire until the next event loop iteration.

    Example:
    1. setImmediate(callback[, arg][, ...])

  2. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  3. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  4. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  5. def toLocaleString(): String
    Definition Classes
    Object
  6. def valueOf(): Any
    Definition Classes
    Object