Time.Sleep

lib/Time/Sleep.gob

Pausing for a time: sleep for a duration from now, sleepUntil for a deadline. A sleeping task does not hold its worker, so other tasks run meanwhile; from the program's own code, outside any task, the wait runs other tasks until the time has passed. The time is read on the monotonic clock, so setting the system clock neither shortens nor lengthens a sleep.

fun sleep : fun(Duration) -> Unit

Return once d has passed. A zero or negative d returns at once.

fun sleepUntil : fun(Deadline) -> Unit

Return once dl has passed.