Created
May 29, 2023 20:36
-
-
Save ValentaTomas/69afd8a633133f1fe91914ac3a76fdbd to your computer and use it in GitHub Desktop.
Promisified setTimeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function wait(ms: number) { | |
return new Promise(resolve => setTimeout(resolve, ms)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment