• Creates a Promise that completes after the specified number of miliseconds

    Parameters

    • timeMs: number

      time to sleep in milliseconds

    Returns Promise<void>

    await sleepAsync(3000); // returns in 3 seconds