Resolves the promise after a given timeout.
Milliseconds to wait before resolving.
The promise that resolves after the timeout.
await delay(1000);// waits for one second Copy
await delay(1000);// waits for one second
Resolves the promise after a given timeout.