Skip to content

Instantly share code, notes, and snippets.

@kkm
Created July 10, 2021 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkm/ebcf83a60e1d8eeb769d4ad87cf4df91 to your computer and use it in GitHub Desktop.
Save kkm/ebcf83a60e1d8eeb769d4ad87cf4df91 to your computer and use it in GitHub Desktop.
await in promise
//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