Function randomWait

  • Waits for a random amount of time.

    Type Parameters

    • T

    Parameters

    • duration: 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 randomWait();
    

Generated using TypeDoc