Last active
August 22, 2020 07:07
-
-
Save lenivene/2481c1a9ecb8d13a4180a0f02981b755 to your computer and use it in GitHub Desktop.
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
module.exports = async function sleep(time){ | |
return new Promise(function (resolve) { | |
setTimeout(resolve, time); | |
}) | |
} |
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
export default async (time: number) => { | |
return new Promise(function (resolve) { | |
setTimeout(resolve, time); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment