• A promise-based sleep function. Included as a more convenient alternative to setTimeout for performing simple delays. Call as await sleep(1000).

    Parameters

    • durationMilliseconds: number

      How long to sleep in milliseconds

    Returns Promise<void>