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

NameTypeDescription
callbackFunctionFunction to queue.
argsanyCallback arguments.

Return Value

undefined

No application result.

Working Example

Example Snippetnodejs
process.nextTick(console.log,'later'); console.log('now');
Node.js Reference