Pauses the execution of an async function for a specified number of milliseconds.
Milliseconds to sleep.
A promise that resolves after the delay.
await sleep(2000); // Wait for 2 seconds Copy
await sleep(2000); // Wait for 2 seconds
Pauses the execution of an async function for a specified number of milliseconds.