Series
Async machinery
The event loop, the microtask queue, and what an async function compiles to — counted in turns rather than described in metaphors.
- Parts
- 2
- Latest
- №01
Runtime and performanceThe Event Loop You Think You Know
Microtasks, rendering opportunities and starvation — what the loop actually does between your callbacks, in the browser and in Node.
- №02
Language internalsWhat await Compiles To, and What It Costs
One async function compiled three ways — TypeScript's ES5 emit, V8's bytecode and the spec's Await steps — and the microtask turns each one predicts.