sleep
The sleep() function creates an asynchronous pause for a number of milliseconds.
Interactive example
Syntax
typescript
function sleep(millieSeconde?: number): Promise<void>;Parameters
millieSeconde: Duration in milliseconds (optional,0by default).
Return value
A promise that resolves after the indicated duration.
See also
asyncRetry- May use pauses between attemptsasyncLoop- Asynchronous loop that can include delays
