Delays the execution for the specified amount of time.

  • Parameters

    • Optionaltimeout: number = 1000

      The duration to wait in milliseconds.

    Returns Promise<void>

    A promise that resolves once the timeout has elapsed.