Created
November 22, 2023 13:32
-
-
Save akbarjondev/4f5b14c2312f98854f79a399f773ca99 to your computer and use it in GitHub Desktop.
Function for delaying executing next line of 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 delay(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