Skip to content

Instantly share code, notes, and snippets.

@ivanstnsk
Created May 22, 2020 18:05
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 ivanstnsk/a5c5116ef3822edad51628c51a45baa8 to your computer and use it in GitHub Desktop.
Save ivanstnsk/a5c5116ef3822edad51628c51a45baa8 to your computer and use it in GitHub Desktop.
export const delay = (timeMs: number): Promise<void> => {
return new Promise((resolve) => {
setTimeout(resolve, timeMs);
});
};
// await delay(2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment