How to Wait
summary
Starts with await fetch and traces the actual plumbing: Node queues work in libuv, libuv uses Linux epoll (or IOCP on Windows) and the kernel raises interrupts that drivers and the scheduler handle, DMA and HPET fire background callbacks, CPUs enter halt states to save power, and JavaScript runtimes implement cooperative multitasking so long-running JS blocks the event loop. Demonstrates that async/await is a mapping onto OS/kernel/hardware mechanisms and why an event loop scales better than many blocking processes.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:58What is waiting?
- 17:00Scheduling
- 19:04Process/thread overhead
- 19:46Weaving together events
- 21:25React fibers








