Learning on Web Dev Open is free for all.

Systems Thinking > One thread, several queuesEvent Loop
Phase 03One thread, several queues146 of 434

Event Loop

Order the queue against the clock, twenty rounds, until the microtask boundary stops needing a moment of thought.

Drill20 minAI off

Event Loop

Order the log lines before the microtasks, timers and paints run.

Play Event Loop

You should now be able to

  • Order mixed sync, microtask and task work correctly at speed
  • Spot an await that serialises work needlessly
Ask the community

Loading…