Cohort

Async JavaScript

A look into types of in-memory storage and how to build them yourself. QuickLRU is going to be our primary example.

  1. Review of Promises and async/await

    • Advanced Promise chaining
    • Error handling in async code
  2. Generators and Iterators

    • Creating custom iterables
    • Using generators for asynchronous flow control
  3. Web Workers

    • Offloading heavy computations
    • Communication between the main thread and workers
  4. Async Iteration

    • for-await-of loops
    • Async generators
  5. Advanced Event Loop Concepts

    • Microtasks vs Macrotasks
    • Optimizing for the event loop
  6. Real-world async patterns

    • Throttling and debouncing
    • Async queues and limiters