Skip to content

Glossary: Node.js Basics

nextTick / setImmediate

Also written: process.nextTick, setImmediate

Two ways to run code soon: `process.nextTick` runs right after the current code finishes, and `setImmediate` runs on the loop's next turn. Promises and `await` are almost always enough instead.

Where the book teaches it

Related terms

Event loop