1 minintermediate
queueMicrotask Explained: The Smallest Async Queue in JavaScript
What queueMicrotask does, how it differs from Promise.then, and how microtasks really work under the hood.
Short posts with code and diagrams. Readable in minutes.
What queueMicrotask does, how it differs from Promise.then, and how microtasks really work under the hood.
Async/await feels like parallel code, but it isn’t. Here’s why JavaScript is still single-threaded and how async really works.
If JavaScript is single-threaded, how can Promise.all handle multiple requests at the same time? A deep dive into the event loop and async I/O.
A practical and conceptual comparison of Promise.all, Promise.race, Promise.any, and Promise.allSettled.
A simple but deep dive into how Promises work in JavaScript and why they matter.
Understand what it means when people say JS is single-threaded.