Async JS
summary
Explains how callbacks, promises, generators and async/await map to the JS runtime and shows working code with setTimeout, fetch and Promise.resolve to demonstrate ordering. Claims that promises go to the microtask queue (higher priority) while timers and DOM handlers go to the callback queue, so resolved promises run before delayed callbacks; shows a blocking synchronous loop delaying callbacks but not microtasks. Uses concrete examples and they behave as described.
AI-written summary · about
chapters (8)
- 0:00Async JavaScript intro
- 1:29JS single-threaded model
- 6:52Callback problems
- 7:13Promises improve async
- 13:54Event loop queues
- 14:35Iterators and generators
- 19:53Async/await readability
- 22:22Summary
related talks
30mActually Understanding Asynchronous JavaScript
32mPromises Are So Passé
32mThe Evolution Of Asynchronous Javascript
25mAsynchrony: Under the Hood
18mEvent loop and asynchrony in JavaScript
49mA Beginner's Guide to Wrangling Asynchronicity in JavaScript
42mBeyond Promises: Async Patterns in JavaScript
01h 04m5 architectures of asynchronous JavaScript
