Skip to content

Instantly share code, notes, and snippets.

@munierujp
Last active September 25, 2022 14:04
Show Gist options
  • Save munierujp/33b938407d36785fc0cfd79f0686f3ca to your computer and use it in GitHub Desktop.
Save munierujp/33b938407d36785fc0cfd79f0686f3ca to your computer and use it in GitHub Desktop.
const sleep = async (ms: number): Promise<void> => {
return await new Promise(resolve => setTimeout(resolve, ms))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment