Event loop
An event loop repeatedly takes ready work from a queue and runs it. In Node.js, synchronous JavaScript on the main thread runs one callback at a time.
For example, a callback that computes for 50 milliseconds delays timers and other callbacks waiting behind it. See also CPU-bound work.
Share: