Function waitFor

  • Waits for a specified amount of time before resolving a promise.

    Parameters

    • value: number

      The value representing the time to wait.

    • Optional timeUnits: TimeUnits

      Optional. The units of time for the value. Defaults to "ms" if not provided.

    • Optional logDuration: boolean

      Optional. Specifies whether to log the duration of the wait. Defaults to false if not provided.

    Returns Promise<void>

    A promise that resolves after the specified time has elapsed.

Generated using TypeDoc