DEV Community

loading...

Discussion on: Understanding Generators in ES6 Javascript

Collapse
rtk profile image
RouvenKruse

The only scenario I can think of is using an asynchronous generator in combination with the "for await ... of" loop (developer.mozilla.org/en-US/docs/W...) when not using libraries such as rxjs.

Collapse
adam_cyclones profile image
Adam Crockett

Interesting! I didnt know about for await of and I thought I had mastered async await :/