Function repeatAsync

  • Generates a sequence that contains one repeated value.

    Type Parameters

    • TResult

    Parameters

    • element: TResult

      The value to be repeated.

    • count: number

      The number of times to repeat the value in the generated sequence.

    • Optional delay: number

      How long to delay the repeat (ms)

    Returns IAsyncEnumerable<TResult>

    An IAsyncEnumerable that contains a repeated value.

Generated using TypeDoc