async icon indicating copy to clipboard operation
async copied to clipboard

Is it possible to support `AsyncGenerator`

Open shtse8 opened this issue 3 years ago • 2 comments

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.

shtse8 avatar Aug 03 '22 07:08 shtse8

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.

hargasinski avatar Aug 04 '22 03:08 hargasinski

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

shtse8 avatar Aug 04 '22 06:08 shtse8