Skip to content

Instantly share code, notes, and snippets.

Last active Nov 19, 2020
What would you like to do?
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