The number of milliseconds to wait.
A promise that resolves after the specified time.
This utility is useful for creating delays in asynchronous operations, such as waiting for a certain condition to be met or pacing operations. It can be used in conjunction with async/await
syntax for cleaner code.
Waits for a specified number of milliseconds.