Created
September 25, 2024 21:59
-
-
Save eralvarez/5d2572a9b1b301374e83f9cbf224b249 to your computer and use it in GitHub Desktop.
fn to sleep js code
This file contains hidden or 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