Function delay

Delay function to wait for a specified amount of time.

  • Parameters

    • ms: number

      The number of milliseconds to wait.

    Returns Promise<unknown>

    A promise that resolves after the specified time.