• Creates a new iterable using the specified function implementing the members of AsyncIterable

    Type Parameters

    • T

      The type of the elements returned by the enumerable sequence.

    Parameters

    • fn: ((signal?) => AsyncIterator<T, any, undefined> | Promise<AsyncIterator<T, any, undefined>>)

      The function that creates the Symbol.asyncIterator method

        • (signal?): AsyncIterator<T, any, undefined> | Promise<AsyncIterator<T, any, undefined>>
        • Parameters

          • Optional signal: AbortSignal

          Returns AsyncIterator<T, any, undefined> | Promise<AsyncIterator<T, any, undefined>>

    Returns AsyncIterable<T>

    A new async-iterable instance.

Generated using TypeDoc