Function waitRandom

  • Waits for a random amount of time.

    Type Parameters

    • T

    Parameters

    • minDuration: number = 1250

      Minimum amount of time to wait, in ms.

    Returns Promise<void>

    Remarks

    Will wait a random amount between base, and twice the base duration.

    Example

     await waitRandom();