Async JS
summary
Covers how JavaScript’s single call stack works with browser APIs and the event loop, explaining microtask vs macrotask ordering (promises run before timers) and using XHR/fetch as promise examples; demonstrates how synchronous blocking (e.g., 5ms work) delays all async callbacks. Also derives async/await from generators and the iterator protocol, walking through next/yield and showing how async functions resume with promise values.
AI-written summary · about
chapters (8)
- 0:00Async in JavaScript
- 1:49Synchronous execution
- 3:58Task queues and event loop
- 6:50Callback vs promise limits
- 10:02Callbacks vs promises
- 14:40Iterators and generators
- 19:59Async/await explained
- 22:03Conclusion
related talks
30mActually Understanding Asynchronous JavaScript
18mEvent loop and asynchrony in JavaScript
25mAsynchrony: Under the Hood
32mThe Evolution Of Asynchronous Javascript
01h 04m5 architectures of asynchronous JavaScript
41mThe Eventloop in JavaScript - How does it work?
38mIvan Tulup. Async mess in JS under the hood
46mAsynchronous JavaScript and non-concurrency
