Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wait(delay) {
- return new Promise((resolve, reject) => {
- setTimeout(resolve, delay);
- });
- }
- async function hello() {
- await wait(delay);
- console.log('executed');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement