Skip to main content

Function: collapseAsyncGenerator()

collapseAsyncGenerator<Type>(generator): Promise<Awaited<Type>[]>

Collapses an async generator down to an array of entries.

Type Parameters

Type

The type of items yielded by the generator and contained in the output array.

Parameters

generator: AsyncIterable<Type, any, any>

An async generator to be collapsed.

Returns

Promise<Awaited<Type>[]>

The array output by the generator provided.

Defined in

src/processors/eslint/utils.ts:7