 <p>If you want use generators to make async then you code is valid. ES6 contains only promises to async operations. ES7 will have async/await. You can also use a good library: <a href="https://github.com/kriskowal/q" rel="nofollow">https://github.com/kriskowal/q</a> or use only native promises Promise.All without generators.</p>