Last active
August 7, 2020 07:08
-
-
Save butackle/e348393ff7a89b82df7f2b22df5207da to your computer and use it in GitHub Desktop.
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
const timer = (milliseconds) => new Promise((resolve) => setTimeout(() => resolve(), milliseconds)) |
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
/** | |
* タイマー | |
* | |
* @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