Created
October 23, 2019 10:18
-
-
Save JamieMason/5d841f8e6071d5ace51641585a769ef1 to your computer and use it in GitHub Desktop.
sleep
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 = secs => new Promise(done => setTimeout(done, secs * 1000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment