Created
July 16, 2017 03:11
-
-
Save morficus/111d36e6e0dc67894561a4da7eaaa834 to your computer and use it in GitHub Desktop.
A quick and dirty "sleep" method 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
| let wait = ms => new Promise(resolve => setTimeout(resolve, ms)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment