Answers for "wait"

0

wait

function wait(timeout){
    return new Promise(resolve=>setTimeout(resolve, timeout));
}
await wait(<time>).then(()=>{});
Posted by: Guest on October-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language