Function fromAsync

  • Converts the input array of promises to an async iterable

    Type Parameters

    • TSource

    Parameters

    • promises: Promise<TSource>[]

      Array of Promises to Convert to an IAsyncEnumerable

    Returns IAsyncEnumerable<TSource>

    IAsyncEnumerable

    Throws

    No Elements in the Promises Array

  • Converts the input method to an async iterable

    Type Parameters

    • TSource

    Parameters

    • asyncIterable: (() => AsyncIterableIterator<TSource>)

      Function which returns an AsyncIterableIterator

        • (): AsyncIterableIterator<TSource>
        • Returns AsyncIterableIterator<TSource>

    Returns IAsyncEnumerable<TSource>

    IAsyncEnumerable

Generated using TypeDoc