Function sleep

  • This is a wrapper around setTimeout() that works with await.

    await sleep(100);

    Returns

    A promise that you can wait on.

    Parameters

    • ms: number

      How long in milliseconds to sleep.

    Returns Promise<unknown>

Generated using TypeDoc