re: Understanding Generators in ES6 Javascript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I understand how they work, but I still have no idea where to use a generator.
 

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.

 

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

code of conduct - report abuse