Created
December 21, 2016 17:49
-
-
Save weslleyaraujo/46a6fe39d236641d5ad888f3029c61f5 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 default function sleep(ms = 0) { | |
return new Promise(r => setTimeout(r, ms)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment