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
  1. №01
    Runtime and performance

    The 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.

  2. №02
    Language internals

    What 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.

Arrow keys to move, Enter to open.