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()
- Alphabetic
- By Inheritance
- SetImmediate
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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.
setImmediate(callback[, arg][, ...])
Example: - def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def toLocaleString(): String
- Definition Classes
- Object
- def valueOf(): Any
- Definition Classes
- Object