In the ever-evolving landscape of JavaScript, staying up-to-date with its latest features is crucial for writing efficient and modern code. One suc...
For further actions, you may consider blocking this person and/or reporting abuse
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.
Great write up!
I wonder about use cases where async generators shine. Happy to hear about real world examples.
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 🙂
No doubts :) Thank you!
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 🙌
amazing explanation 👏👏
Very good explanation
Thanks Patric! I’m glad you’ve appreciated the article 🙌