sleep
Callable
Parameters
ms: number = 1000
The time to wait in milliseconds. Default is 1000 ms.
Returns Promise<void>
A Promise that resolves after the specified time has elapsed.
The time to wait in milliseconds. Default is 1000 ms.
A Promise that resolves after the specified time has elapsed.
Asynchronously waits for a specified number of milliseconds.