• Returns the elements from the source async-iterable sequence until the other function that returns a promise produces an element.

    Type Parameters

    • TSource

      The type of the elements in the source sequence.

    Parameters

    • other: ((signal?) => Promise<any>)

      A function that terminates the propagation of elements in the source sequence.

        • (signal?): Promise<any>
        • Parameters

          • Optional signal: AbortSignal

          Returns Promise<any>

    Returns MonoTypeOperatorAsyncFunction<TSource>

    An async-iterable sequence containing the elements of the source sequence up to the point the other function which returns a promise interrupted further propagation.

Generated using TypeDoc