Created
March 23, 2018 14:31
-
-
Save justlstn/f7c3301387c7edcb00f3e3258e09567f 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
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
// using | |
// await sleep(300); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment