“Functions can return promises, but promises themselves resolve through callbacks... so the non-blocking control flow remains. Generators are about to change that!
“Generators were designed for iterating over infinite sequences of items, but they can also be used for writing code that 'appears to block’ (while remaining single-threaded). This restores the usefulness of simple functions, which take arguments and return values.
“This talk will explore these ideas in depth, explain what generators are and how they work, and survey some ‘polyfill’ libraries that use them to provide ‘pseudo blocking’ control flow. I will also look at the ES7 async/await proposal (similar functionality – different syntax), and consider how generators can be used today. Lastly, I'll look at what (if any) performance costs come from using generators.
Sovereign Technologies will be providing complementary pizza and beverages, so come hungry, come thirsty, bring your laptop and be ready to code!