Last active
December 30, 2022 17:38
-
-
Save drumnickydrum/4e3df921b3850dde6b2976d7cfbe99c0 to your computer and use it in GitHub Desktop.
[TS: Sleep Function] A Promise that resolves after ms argument #typescript
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 sleep = (ms: number) => new Promise(r => setTimeout(r, ms)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment