Created
November 14, 2020 00:36
-
-
Save ridomin/f092fbc4172fd02b2573d169a38e2e3d to your computer and use it in GitHub Desktop.
sleep,js
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
const sleep = (delay) => new Promise(resolve => setTimeout(resolve, delay)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment