Function sleep

  • Wait ms microseconds.

    Example:

    await sleep(1000);
    

    Parameters

    • ms: number

      duration

    Returns Promise<unknown>