Event Loop
noun
say it: “ih-VENT loop” /ɪˈvɛnt lup/
The part of Node that lets one thread handle many tasks by starting slow work, carrying on, and running each callback when its work is done.
What is Event Loop?
The event loop lets Node handle many things with one thread: it starts slow work (network, disk), carries on, and runs the callback when that work finishes.
In a sentence
- “While the database works, the event loop serves other requests.”
- “A long calculation blocks the event loop, so every other request waits.”
Level: Journeyman · More Node.js terms at this level
Updated