Last active
November 19, 2020 09:55
-
-
Save ourmaninamsterdam/40fd6eaa475f27a71a82e3967bcf4469 to your computer and use it in GitHub Desktop.
For pausing execution while debugging
This file contains 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
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