Async Programming in ES7
summary
Claims that ES7 adds async/await and async generators to make waiting as simple as blocking, and shows the mechanics: generator + promise composition implemented via spawn (task.js) (also available in Babel/Regenerator) that turns yielded promises into resumed values. Demonstrates concrete code for getStockPrice resolving to a final number, shows for on loop proposal for streaming observables, and notes async functions are draft while async generator/observable ideas remain a strawman.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:15ES 2016: The Evolution of JavaScript
- 0:54ES2015 ES2016
- 4:38The Pyramid of Doom
- 22:50ES Feature Maturity Stages
related talks
32mJavaScript 7: the Evolution of JavaScript
33mAsync Functions Awaiting You
31mPromises and Generators: control flow utopia
32mPromises Are So Passé
45mNext Generation Asynchronous Patterns in JavaScript
14mThe Promised Path to Async, Awaits
42mBeyond Promises: Async Patterns in JavaScript
25mThe Long Road to Async/Await in JavaScript
