sleep
Delays the execution of an asynchronous function.
- Delay executing part of an
asyncfunction, by putting it to sleep, returning anew Promise().
Delays the execution of an asynchronous function.
async function, by putting it to sleep, returning a new Promise().