Created
May 22, 2020 18:05
-
-
Save ivanstnsk/a5c5116ef3822edad51628c51a45baa8 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
export const delay = (timeMs: number): Promise<void> => { | |
return new Promise((resolve) => { | |
setTimeout(resolve, timeMs); | |
}); | |
}; | |
// await delay(2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment