Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to support AsyncGenerator #1859

Closed
shtse8 opened this issue Aug 3, 2022 · 2 comments
Closed

Is it possible to support AsyncGenerator #1859

shtse8 opened this issue Aug 3, 2022 · 2 comments
Labels

Comments

@shtse8
Copy link

shtse8 commented Aug 3, 2022

Currently, it doesn't support IterableCollection<T> as stated in the doc.

https://caolan.github.io/async/v3/docs.html#eachOfLimit

coll | Array \| Iterable \| AsyncIterable \| Object | A collection to iterate over.

I have tried to put async generator into the arg, and it's working perfect without issue except the type error.

@hargasinski
Copy link
Collaborator

hargasinski commented Aug 4, 2022

Thanks for the report @shtse8! Yes, async generators are supported but the types may not be up to date as they're not maintained by us. We hope to include the types in the future, see #1831.

@shtse8
Copy link
Author

shtse8 commented Aug 4, 2022

This is a super amazing project in js. Hope it will support full typing in the future!

@aearly aearly closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants