Function sleep

  • Sleeps for a given delay.

    Parameters

    • delay: number

      The delay, in milliseconds.

    Returns Promise<unknown>

    A promise that resolves after the delay.