Skip to content

Instantly share code, notes, and snippets.

@marco-souza
Created August 3, 2020 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marco-souza/6c4c70c696f900b3cde1ffc9fd2f2fa0 to your computer and use it in GitHub Desktop.
Save marco-souza/6c4c70c696f900b3cde1ffc9fd2f2fa0 to your computer and use it in GitHub Desktop.
Async Sleep
const sleep = (ms: number): Promise<void> =>
new Promise(resolve => setTimeout(resolve, ms));
export default sleep;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment