Function delay

Delays the execution for the specified amount of time.

  • Parameters

    • time: number

      The time to delay in milliseconds.

    Returns Promise<unknown>

    A promise that resolves after the specified delay.