• Converts an existing async-iterable to a promise containing the array of values.

    Type Parameters

    • TSource

      The type of elements in the source sequence.

    Parameters

    • source: AsyncIterable<TSource>

      The source sequence to convert to an array.

    • Optional signal: AbortSignal

      An optional abort signal to cancel the operation at any time.

    Returns Promise<TSource[]>

    A promise containing all the items from the source sequence as an array.

Generated using TypeDoc