Created
November 21, 2019 13:06
-
-
Save luiscastro193/e41bc458ad97cdea5670670a416f409c to your computer and use it in GitHub Desktop.
Pause promise
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
"use strict"; | |
function pause(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