async
async copied to clipboard
Is it possible to support `AsyncGenerator`
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.
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.
This is a super amazing project in js. Hope it will support full typing in the future!