~/talk

Understanding the NodeJS event loop myths and magic

Talkat Node.js Global Summit 2020 · on Saturday, 2020-05-30· [nodejs, concurrency]
slides:none on file

Explains how Node.js is single‑threaded at the JavaScript level while offloading blocking I/O to libuv thread pool of 4 by default, lists event loop phases (timers, pending callbacks, poll, check, close), and shows concrete differences: setTimeout uses a minimum delay and can be delayed by the call stack, setImmediate runs after the poll phase, and process.nextTick vs setImmediate schedules callbacks before the next loop or after the current poll respectively; clarifies that EventEmitter is unrelated to the event loop.

AI-written summary · about

  1. 0:00Start
  2. 3:30What Is Event Loop
  3. 7:33What Is a Synchronous in Node Js
  4. 9:08The Event Loop
  5. 12:56The Difference between Set Time Set Immediate and Set Timeout
  6. 27:5810 Minute Break
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.