I Yield for Generators
summary
Claims that ES6 generators let code be both faster and clearer by turning iterative and async patterns into simple linear code. Shows a working tree-traversal generator, an infinite sequence of numbers with skip/take paging that yields expected ranges, and an async runner that resumes generators by awaiting Promises (errors rethrown into the generator). Demonstrates generator-based batching for UI work and coroutine-like channels; runs in Chrome flag, Node harmony/unstable and Firefox Nightly.
AI-written summary · about
chapters (3)
related talks
31mPromises and Generators: control flow utopia
35mJavascript Generators
51mThe Miracle of Generators
35mUntangle your code with yield
45mNext Generation Asynchronous Patterns in JavaScript
32mJavaScript 7: the Evolution of JavaScript
30mJavaScript Generators — Practical Use Cases
33mAsync Programming in ES7
