General API
sleep()
asyncPauses the execution of the script for the passed duration.
- Accepts a single argument as a number representing time in milliseconds.
Example:
log(1);
// Outputs to the console immediately.
await sleep(500);
log(2);
// Outputs to the console after 500 milliseconds.