Created
November 27, 2019 15:16
-
-
Save archiewald/fc79307a31c2f23344d1e977b4ae19c8 to your computer and use it in GitHub Desktop.
[sleep with async/await]
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
await (() => new Promise(resolve => setTimeout(resolve, 1000)))(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment