Demo of the blog post at http://blog.mgechev.com/2014/12/21/handling-asynchronous-calls-with-es6-javascript-generators/