Created
July 10, 2021 02:10
-
-
Save kkm/ebcf83a60e1d8eeb769d4ad87cf4df91 to your computer and use it in GitHub Desktop.
await in promise
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
//https://stackoverflow.com/questions/46919013/puppeteer-wait-n-seconds-before-continuing-to-the-next-line | |
function delay(time) { | |
return new Promise(function (resolve) { | |
setTimeout(resolve, time) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment