DEV Community

Cover image for JavaScript Iterators and Generators: Asynchronous Generators
Andrea Simone Costa
Andrea Simone Costa

Posted on • Edited on

JavaScript Iterators and Generators: Asynchronous Generators

Hi, nice to meet you 😄!
You can find this article in my personal blog here.

Oldest comments (5)

Collapse
 
conartist6 profile image
Conrad Buck • Edited

To any readers, if you enjoyed this article you might take a moment to check out (or checkout) iter-tools. I currently maintain it, and it provides a great toolbox for working with any kind of iterables, including Arrays, Maps, Sets and the async iterables discussed in this article. It's the only set of tools I know that won't ever leak a file handle when used with something like the FileReaderByLines class described above.

Collapse
 
jfet97 profile image
Andrea Simone Costa

Do you know IxJS?

Collapse
 
conartist6 profile image
Conrad Buck • Edited

I do. Both serve the same use case, I just think iter-tools is better. A lot better actually! I've put quite a lot of my own work into it to make that be the case.

For one thing it has API docs, making it semver compliant where IxJS is not.

It also offers all its methods in both sync and async forms, which Ix does not.

I'm also fairly sure that it has vastly superior test coverage.

Collapse
 
movaclub profile image
Oleksandr Mostovyi

(Y)

Collapse
 
sloan profile image
Sloan the DEV Moderator

Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link. Doing so helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section.

If you choose to do so, you also have the option to add a canonical URL directly to your post.