Function: asyncIterableToArray()
asyncIterableToArray<
T>(asyncIterable):Promise<T[]>
Defined in: packages/cspell-io/dist/index.d.ts:9
Reads an entire iterable and converts it into a promise.
Type Parameters
T
T
Parameters
asyncIterable
the async iterable to wait for.
AsyncIterable<T, any, any> | Iterable<T, any, any> | Iterable<Promise<T>, any, any>
Returns
Promise<T[]>