Glossary term
What is microtask? Meaning for developers
In Full-Stack Questions
A small job (like a promise callback) that runs as soon as the current code finishes, before timers and rendering.
Learn it properly · Full-Stack QuestionsLesson 16: Async JavaScript, Promises and the Event LoopOrder puzzles in the browser and Node, promise rules, combinators, concurrency limits, cancellation, race conditions and async memory leaks.In JavaScript Part 2
A small job (like a promise callback) that runs when the current code finishes, before timers.
Learn it properly · JavaScript Part 2Lesson 2: Promises and async/await From the Ground UpPromise states, microtask order, a promise built by hand, async/await, the combinators and AbortController.In Node.js From Zero
A small job, such as a promise callback or queueMicrotask, that runs right after the current callback ends and before the loop moves on.
Learn it properly · Node.js From ZeroLesson 1: The Event Loop: Timers, Promises and the Poll PhaseThe loop phases, microtasks versus macrotasks, process.nextTick, setImmediate, and how a blocked loop freezes everything. Traced and run.