DEV Community

Cover image for Understanding Async Iterators in JavaScript

Understanding Async Iterators in JavaScript

Lucas Santos on January 13, 2024

Hey! If you're reading this now, note that some of the articles linked in this article are not in English, I'm doing my best to translate them and...
Collapse
 
efpage profile image
Eckehard

As far as I understood, you need some kind of delay (or generator funciton) to assure, that results are created in the order of the initial data. This seems to make things even more complex. Is there still an advantage to use asynchronous iterators then?

Collapse
 
ragudos profile image
Aaron

I can only think of having a more organized way of getting results from a MutationObserver. Find it on GitHub since I forgot its name

Collapse
 
best_codes profile image
BestCodes

Awesome article! I made a post about the same topic very recently:

dev.to/best_codes/demystifying-adv...

Keep up the good content!

Collapse
 
emiltayeb profile image
Emil Tayeb • Edited

Thank you
do you have the article you linked in English? it opens in Spanish for me..

Collapse
 
_staticvoid profile image
Lucas Santos

Unfortunately I haven't yet translated this one! But I will!