Node.js - Timers and Scheduling
Which of the following is the correct syntax to schedule a function to run immediately after I/O events in Node.js?
setTimeout(fn, 0) runs after timers phase, process.nextTick runs before event loop phases, setImmediate runs after I/O events.setImmediate is designed to run callbacks after I/O events in the check phase.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions