• Expands (breadth first) the async-iterable sequence by recursively applying a selector function to generate more sequences at each recursion level.

    Type Parameters

    • TSource

      Source sequence element type.

    Parameters

    • selector: ((value, signal?) => AsyncIterable<TSource> | Promise<AsyncIterable<TSource>>)

      Selector function to retrieve the next sequence to expand.

        • (value, signal?): AsyncIterable<TSource> | Promise<AsyncIterable<TSource>>
        • Parameters

          • value: TSource
          • Optional signal: AbortSignal

          Returns AsyncIterable<TSource> | Promise<AsyncIterable<TSource>>

    Returns MonoTypeOperatorAsyncFunction<TSource>

    An operator which returns a sequence with results from the recursive expansion of the source sequence.

Generated using TypeDoc