Function wait

  • Wait for a specific amount of time (timeout)

    Parameters

    • ms: number

      Time to wait in milliseconds

    Returns Promise<void>

    A promise that resolves in x seconds