The Nodejs Event Loop is where all the application codes inside a callback function are executed. The event loop receives an event each time something happens and will call the necessary callbacks. In the second stage of the event loop, Nodejs checks if there are any pending timers or I/O tasks that are still running in the background, and if none Nodejs will exit.

11m read timeFrom levelup.gitconnected.com
Post cover image
Table of contents
Nodejs Event Loop ArchitectureThe Nodejs Event Loop

Sort: