OxL Справочник OxL
РусскийEnglish

fn sleep

Suspends the current task (§17.4); same as the prelude sleep.

Example:

oxl✓ проверяется в CI
use std.time { sleep }

fn main() io, time {
  sleep(10ms)
  print("slept")
}
Вывод
slept
@intrinsic("sleep") pub(api) fn sleep(d: Dur) time

С версии. 1.0.0-beta

Параметры

ИмяТип
dDur

Эффекты

time

Определено в: std/time/time.oxl:2133

См. также