Hanging Up On Callbacks: Using ECMAScript 6 Generators



Erin Swenson-Healey thinks programming with asynchronous callbacks is harder than it needs to be. But, because of the concurrency model provided to us by the browsers, and in node.js land, it's just something that we've become accustomed to doing.

From Erin's perspective, ECMAScript 6 generators can alleviate some of the pain you're experiencing programming around asynchronous callbacks. In this talk from SF JavaScript, he shows you how to leverage generators to move from continuation-passing style to direct style programming.

For demos of ECMAScript 6 generators, in action, check out http://es6-gen.herokuapp.com/

Want to keep diving into JavaScript?

We have plenty of free developer resources in our stream and also provide world class JavaScript Training.

Published April 11, 2014