• Spread async generators into an array

    Type Parameters

    • T

    Parameters

    • gen: AsyncGenerator<T, any, unknown>

      Async generator to spread

    Returns Promise<T[]>

    Array of results from the generator