• Repeats the given source as long as the specified conditions holds, where the condition is evaluated before each repeated source is iterated.

    Type Parameters

    • TSource

    Parameters

    • source: AsyncIterable<TSource>

      Source to repeat as long as the condition function evaluates to true.

    • condition: ((signal?) => boolean | Promise<boolean>)

      Condition that will be evaluated before the source sequence is iterated.

        • (signal?): boolean | Promise<boolean>
        • Parameters

          • Optional signal: AbortSignal

          Returns boolean | Promise<boolean>

    Returns AsyncIterable<TSource>

    An async-iterable which is repeated while the condition returns true.

Generated using TypeDoc