Skip to content

Instantly share code, notes, and snippets.

@akornmeier
Created October 31, 2018 16:39
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 akornmeier/0fff8d0080ed4df4d5d5e7a598d407c1 to your computer and use it in GitHub Desktop.
Save akornmeier/0fff8d0080ed4df4d5d5e7a598d407c1 to your computer and use it in GitHub Desktop.
Typescript setTimeout function
const delay = (ms: number) => {
return new Promise(resolve => setTimeout(resolve, ms))
}
await delay(60000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment