Asynchronous JS without the cringe
summary
The talk explains how to use JavaScript promises and async/await correctly, fixing common mistakes like mixing .then() chains with async/await, unnecessary return await, async functions without await, and incorrect use of map() with async. It shows proper mental models and techniques (including for-await-of and ways to achieve parallelization) to write concise, clean, and performant asynchronous JS code.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:54Promise problems
- 3:00Promises vs callbacks
- 6:27Common anti-patterns
- 10:42Useless promise returns
- 14:54Sequences vs parallelism
- 18:28Async loops
- 21:38Style mix traps
- 24:45Manual promise chains
- 28:43Scope issues and fixes
- 31:55Async/await benefits
- 36:37Explicit vs implicit
- 39:04Summary and best practices
- 41:07Box 2 years demo
- 42:09Q&A
related talks
46mAsynchronous JS Without the Cringe
32mThe Evolution Of Asynchronous Javascript
26mRethink Async
46mAsynchronous JavaScript and non-concurrency
42mAsync and await with JavaScript: understand and use now
42mBeyond Promises: Async Patterns in JavaScript
58mOptimizing Synchronous Asynchrony
30mActually Understanding Asynchronous JavaScript
