Created
March 12, 2022 02:11
-
-
Save jjmartucci/3eefc4d9a01be6a0969d4990d260ae0e to your computer and use it in GitHub Desktop.
JS Sleep
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
function sleep(ms) { | |
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