Created
April 24, 2018 17:35
-
-
Save corycook/1269759f1869c3ab930cf979093b983b to your computer and use it in GitHub Desktop.
A simple promised wait utility.
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
| function wait(ms) { | |
| return new Promise((resolve) => setTimeout(resolve, ms)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment