Skip to content

Instantly share code, notes, and snippets.

@elrrrrrrr
Created November 10, 2015 10:00
Show Gist options
  • Save elrrrrrrr/ac6272ed0f75ed50e7b5 to your computer and use it in GitHub Desktop.
Save elrrrrrrr/ac6272ed0f75ed50e7b5 to your computer and use it in GitHub Desktop.
promise wait
function wait(ms) {
return new Promise(resolve => setTimeout(resolve, ms || 1))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment