Non-negative delay duration.
A promise that resolves after the delay.
Use await Time.Sleep(ms) inside an async hotkey callback when other hotkey presses must remain responsive while waiting. This function yields to the host, so a second press can run a start/stop toggle callback. If the script is stopped or cancelled first, the promise rejects with Error: Script cancelled.
Asynchronously pauses the current task for the specified duration.