Hey Sascha,
One of the common use cases is when you stream in Nodejs and you need to transform data. In NodeJs, streams already implement the Async Iterators interface too.
Another great example is infinitive loading in a Frontend Application, for instance. Let me know if I answered to your doubts 🙂
It uses generators a lot, but mostly to create imperative animations or smooth reactions by splitting operations over multiple frames to avoid jank (like some of the new React stuff).
I use a lot of AsyncIterators in my code, mostly around streaming the reaction to periodic events.
Senior Full-stack .Net Developer who has Created and optimized scalable web applications for over 8 years ,leveraged troubleshooting and
debugging expertise to contribute to the successful development
I really enjoyed this article on async iterators! I'm still learning about them, but I can see how they can be a powerful tool for writing asynchronous code. I'm definitely going to try to use them more in my own projects.
Hey Sascha,
One of the common use cases is when you stream in Nodejs and you need to transform data. In NodeJs, streams already implement the Async Iterators interface too.
Another great example is infinitive loading in a Frontend Application, for instance. Let me know if I answered to your doubts 🙂
Great thank you :-)
You could be interested by JSCoroutines
I’ve never seen it before! But I’ll take a look at it in the following weeks 🙂
Thanks for the advice 🙂
My write up on how JSCoroutines works:
60fps Javascript while you stringify, parse, process, compress and filter 100Mbs of data
Mike Talbot ⭐ ・ May 25 '20
It uses generators a lot, but mostly to create imperative animations or smooth reactions by splitting operations over multiple frames to avoid jank (like some of the new React stuff).
I use a lot of AsyncIterators in my code, mostly around streaming the reaction to periodic events.
amazing explanation 👏👏
I really enjoyed this article on async iterators! I'm still learning about them, but I can see how they can be a powerful tool for writing asynchronous code. I'm definitely going to try to use them more in my own projects.
Glad the article was appreciated 🙌
Very good explanation
Thanks Patric! I’m glad you’ve appreciated the article 🙌