Last active
March 5, 2025 09:10
-
-
Save Kcko/3c1c10d2707b2cd48de1fc2aaa3d1150 to your computer and use it in GitHub Desktop.
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
// 1 | |
await new Promise(resolve => setTimeout(resolve, 1000)); // wait for 1 sec | |
// 2 | |
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