Skip to content

Instantly share code, notes, and snippets.

@ourmaninamsterdam
Last active November 19, 2020 09:55
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 ourmaninamsterdam/40fd6eaa475f27a71a82e3967bcf4469 to your computer and use it in GitHub Desktop.
Save ourmaninamsterdam/40fd6eaa475f27a71a82e3967bcf4469 to your computer and use it in GitHub Desktop.
For pausing execution while debugging
const wait = async (ms: number) =>
new Promise((resolve) => {
setTimeout(() => resolve(), ms);
});
await wait(10000); // wait for 10 seconds
// Continue...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment