Using Javascript Generators with Promises

added by Paul Wheeler
2/25/2015 6:14:58 PM

357 Views

Generators don't magically make asynchronous code synchronous. All they do is return an iterator which can be used to step through a functio. For a real code, we need something that understands and automatically executes iterators. The other thing to understand is that Generators work in conjunction with, not as a replacement for, promises.


0 comments