6 topics in this chapter
Error-first callbacks, sync vs async invocation, callback hell, and how Node's core APIs enforce the convention.
28 min read
Promise state machines, the microtask queue, V8's internal slots, thenable assimilation, and scheduling order.
29 min read
How V8 compiles async functions into state machines, suspend/resume mechanics, and the implicit promise wrapping.
29 min read
The _events object, synchronous dispatch, listener storage optimizations, the error event contract, and memory leak warnings.
34 min read
The async iteration protocol, Symbol.asyncIterator, for-await-of mechanics, and backpressure with async generators.
29 min read
Promise.all, allSettled, race, any -- short-circuit semantics, failure propagation, and concurrency limiting patterns.
31 min read