Tag

Micro Tasks

1 views collected around this technical thread.

vivo Internet Technology
vivo Internet Technology
Sep 16, 2020 · Fundamentals

JavaScript Event Loop: Macro Tasks vs Micro Tasks Execution Analysis

The article examines JavaScript’s event loop by contrasting macro‑tasks and micro‑tasks, tracing their spec‑defined origins, showing how callbacks, timers, Promises, async/await and generators are queued, and highlighting differences between browsers and Node.js (pre‑v11 vs v11+) that affect execution timing.

Browser ImplementationCallback MechanismJavaScript
0 likes · 12 min read
JavaScript Event Loop: Macro Tasks vs Micro Tasks Execution Analysis