I was pretty much sold on Promises as the answer to everything. That was, until I heard about generator functions and iterator objects, a new way to define functions that paused and continued and available in ECMAScript 6.
Now I’m not going to get into the nitty gritty of these ES6iterators and generators, as far more intelligent people than me have already documented them in an much more elegant way than I ever could.
Your new post is loading...