DEV Community

loading...

Discussion on: Understanding Generators in ES6 Javascript

Collapse
tuanphungcz profile image
Tuan Phung ⚡️ Author

I will write another post with examples where generators come in handy

Collapse
adam_cyclones profile image
Adam Crockett

Seems people agree. Unrelated: I also hate that you can't restart a generator. Despite the initial spec saying you could.

Thread Thread
tuanphungcz profile image
Tuan Phung ⚡️ Author

I finally got some time, so I wrote down one example for the usage of generators, hope that you'll enjoy reading it 👉dev.to/phung_cz/canceling-promises...