NNode event loop
How one thread juggles thousands of tasks: the call stack, the nextTick and promise queues, timers, the libuv phases and the thread pool.
You’ll be ready for- Does a promise callback run before
setTimeout(fn, 0)? setImmediateorsetTimeout: which fires first?- What blocks the event loop, and how do you fix it?