Interactive visualization of Node.js asynchronous execution model
Understanding execution order
Empty
Highest priority - runs before microtasks
Empty
Promises - runs after nextTick
Empty
setTimeout, setInterval callbacks
Empty
I/O callbacks deferred to next iteration
Empty
Retrieve new I/O events, execute callbacks
Empty
setImmediate callbacks
Empty
Close event callbacks (socket.on("close"))
Empty
Waiting for execution...