Node.js - Timers and Scheduling
Which method would you use to schedule a callback to run immediately after the current operation but before any I/O events?
process.nextTick schedules callbacks to run immediately after the current operation, before the event loop continues.setImmediate runs after I/O events, setTimeout with 0 delay runs in timers phase, and Promise.resolve().then() runs microtasks but after nextTick.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions