-
-
Save AmesianX/09edde5baea6c0afb912ddbd4a58bf2c 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