Synchronous asynchronous JavaScript with ES6 Generators

added by DotNetKicks
1/26/2015 8:21:15 PM

1 Kicks, 149 Views

In the one of my last articles I was looking at a few ways we could call asynchronous code in a synchronous flow. Each approach was trying to tackle the same problem of making 3 XHR requests (each to pull in a dummy tweet) and then displaying a status bar of total tweets, photos and favourites. Obviously we’d need the tweets before we could tally up any totals so we had to somewhat control these async requests in a synchronous fashion.


0 comments