Last active
August 11, 2024 17:45
-
-
Save erikpukinskis/c67c8b0a9ac731dec15784911c2cb0b4 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
// From https://gist.github.com/erikpukinskis/c67c8b0a9ac731dec15784911c2cb0b4 | |
async function sleep(ms: number) { | |
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