Await Timeout (async () => { await new Promise(resolve => setTimeout(resolve, 500)); ... })(); Found on SO.