Whetstone

Async JavaScript & Timing

The framework-free mechanics under every async UI: the event loop's tasks and microtasks, timers and why they run late, debounce and throttle built from scratch, promises and async/await (sequential vs parallel, where errors go, the combinators), and cancellation with AbortController. The React units on effects and autosave build on these.

  1. 1. The event loop: tasks, microtasks and rendering

    Lesson · Core · ~30 min
    • Async & Timing
    • Event Loop
  2. 2. Timers in depth: setTimeout and setInterval

    Full · Core · ~35 min
    • Async & Timing
    • Timers
  3. 3. Debounce & throttle from scratch

    Full · Advanced · ~40 min
    • Async & Timing
    • Timers
    • Debounce & Throttle
  4. 4. Promises & async/await: chaining, errors and concurrency

    Full · Core · ~40 min
    • Async & Timing
    • Promises & async/await
  5. 5. Cancellation & races: AbortController and latest-only requests

    Full · Advanced · ~40 min
    • Async & Timing
    • AbortController
    • Promises & async/await