Created
March 2, 2019 06:41
-
-
Save ianfabs/006359b58176dacdf70abd186e2f3321 to your computer and use it in GitHub Desktop.
A tiny module that implements sleep in javascript
This file contains hidden or 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 => new Promise(resolve => setTimeout(resolve, ms)); | |
module.exports = sleep; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment