Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 18

Async functions and the event loop

How JavaScript schedules work — jobs, tasks, and microtasks — how async/await maps onto promises, and how to run and cancel async work well.
7 questions
  1. 010How does the event loop work?Coming soonCoremedium
  2. 020Predict the order: setTimeout vs promises vs queueMicrotask.Coming soonCoremedium
  3. 030How does async/await work under the hood?Coming soonCorehard
  4. 040Sequential vs parallel await — and await inside loops?Coming soonmedium
  5. 050Is JavaScript single-threaded?Coming soonmedium
  6. 060How do you cancel async work?Coming soonmedium
  7. 070Implement a concurrency-limited task runner with retry.Coming soonhard