fn sleep
Suspends the current task (§17.4).
Example:
fn main() io, time {
sleep(10ms)
print("slept")
}Output
slept
@intrinsic("sleep") pub(api) fn sleep(d: Duration) timeSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
d | Duration |
Effects
time
Defined in: std/core/functions.oxl:86