Level 1M11Lesson 11.2

beginner30 minby DevFox

The event loop, in pictures

See where a timer’s callback waits and when it runs: Node runs one thing at a time on the call stack, a callback whose time is up waits in the task queue, and the event loop moves it onto the stack once the stack is empty. Learn why a 0 ms callback runs after the file, why a busy stack makes a callback late, and why a loop that waits for a callback never ends.

  • Fundamentals
  • TypeScript
The event loop, in pictures. Read this lesson at .