Advertisement
John4711

async await sleep

Jan 10th, 2022
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. await new Promise(r => setTimeout(r, 2000));
  2.  
  3.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement