415 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