DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,873 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for JavaScript Iterators and Generators: Asynchronous Generators
Andrea Simone Costa
Andrea Simone Costa

Posted on • Updated on

JavaScript Iterators and Generators: Asynchronous Generators

Hi, nice to meet you πŸ˜„!
You can find this article in my personal blog here.

Top comments (5)

Collapse
 
conartist6 profile image
Conrad Buck • Edited on

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 Author

Do you know IxJS?

Collapse
 
conartist6 profile image
Conrad Buck • Edited on

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
 
sloan profile image
Sloan

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.

Collapse
 
movaclub profile image
Oleksandr Mostovyi

(Y)

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

β­οΈπŸŽ€ JavaScript Visualized: Promises & Async/Await

async await