#async

2 articles tagged “async”.

The event loop drawn as a cycle: run one task, run every microtask, then render a frame
JavaScriptAdvanced

The JavaScript Event Loop: Tasks, Microtasks and Rendering

Why does a resolved promise always beat setTimeout(fn, 0)? Learn exactly how the event loop schedules tasks, microtasks and repaints, and how to keep long work from freezing the page.

7 min read
Timeline comparing three requests run one after another with the same requests run in parallel
JavaScriptIntermediate

Understanding async/await in JavaScript

A practical guide to promises and async/await: how they work, how to handle errors, and how to run tasks in parallel without slowing your app down.

4 min read