• Wraps an existing async-iterable with a new async-iterable which support cancellation.

    Type Parameters

    • TSource

      The type of the elements in the source sequence.

    Parameters

    • source: AsyncIterable<TSource>

      The source sequence to wrap with the abort signal.

    • Optional signal: AbortSignal

      The abort signal used for cancellation.

    Returns AsyncIterable<TSource>

    The source sequence wrapped with an abort signal for cancellation.

Generated using TypeDoc