Promises Are So Passé
summary
Promises ease callback pain but still force awkward scope and ceremony; this session shows how generators + promises get glued with a spawn glue function to let code pause and resume, then explains how async/await in ES2017 builds that behavior into the language. Demo code translates nested callbacks and promise chains into synchronous-looking ifs, loops and try/catch, covers error-handling and parallelism pitfalls, and lists real-world support (Chrome, Edge, Firefox, Babel/TypeScript transpilation).
AI-written summary · about
chapters (9)
- 0:00Introduction and context
- 3:55Challenges of async JavaScript
- 9:33Promises in ES6
- 16:35Problems with promises
- 20:26Generators and promises
- 23:55Async/await introduction
- 27:25Async/await in practice
- 29:53Browser support and tools
- 31:17Conclusion and benefits
related talks
31mPromises and Generators: control flow utopia
45mNext Generation Asynchronous Patterns in JavaScript
14mThe Promised Path to Async, Awaits
33mAsync Functions Awaiting You
42mBeyond Promises: Async Patterns in JavaScript
25mThe Long Road to Async/Await in JavaScript
32mJavaScript 7: the Evolution of JavaScript
23mAsync JS
