Skip to content

Instantly share code, notes, and snippets.

@butackle
Last active August 7, 2020 07:08
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 butackle/e348393ff7a89b82df7f2b22df5207da to your computer and use it in GitHub Desktop.
Save butackle/e348393ff7a89b82df7f2b22df5207da to your computer and use it in GitHub Desktop.
const timer = (milliseconds) => new Promise((resolve) => setTimeout(() => resolve(), milliseconds))
/**
* タイマー
*
* @param milliseconds
*/
const timer = (milliseconds: number) => {
return new Promise((resolve) => setTimeout(() => resolve(), milliseconds))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment