Module time/sleep
time/sleep
Synchronous sleep — blocks the current thread.
Example
{ sleep } :: import "std/time/sleep";
sleep(usize(100)); // sleep 100ms
Functions
sleep
function
fn(ms : usize) -> unit
Block the current thread for the given number of milliseconds.
Parameters
| Name | Type | Notes |
|---|---|---|
ms | usize |
Returns: unit