Last active
January 14, 2021 14:58
-
-
Save yairEO/9fd8ce91fa646b87f816e5ee728baddc to your computer and use it in GitHub Desktop.
promise javascript delay
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
const delay = 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
Usage