public static sleep(millis as Int) as Void
Sleeps until the requested deadline, or an early stop/interruption. A cooperative pause can extend the call beyond that deadline. Stop or interruption requests wake it early; the caller must check the request and return cleanly. Nonpositive durations do not wait.
| Parameter | Description |
|---|---|
millis | Maximum sleeping duration in milliseconds. |
Thread.sleep(10)