Process
process.nextTick()
Queues a callback in the Node next-tick queue. Prefer queueMicrotask for ordinary portable deferral; module context affects ordering.
Formal Syntax & Structure
nodejs syntaxnodejs
process.nextTick(callback[, ...args])Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| callback | Function | Function to queue. |
| args | any | Callback arguments. |
Return Value
undefined
No application result.
Working Example
Example Snippetnodejs
process.nextTick(console.log,'later'); console.log('now');