Helper to delay anything within an async function
async
delay in milliseconds
const anyAsyncFunc = async () => { // do something console.log('before delay') // wait for 200ms await delay(200) // and do other things console.log('after delay')} Copy
const anyAsyncFunc = async () => { // do something console.log('before delay') // wait for 200ms await delay(200) // and do other things console.log('after delay')}
Generated using TypeDoc
Helper to delay anything within an
async
function