Skip to Content
i documentation
Standard library referenceModules

i/clock

Clock observations and scheduler-friendly sleeps.

Clock

Clock = (

ClockError

ClockError = (operation = String, code = String)

monotonic_ns

monotonic_ns = () <- (clock : Clock) {

unix_ns

unix_ns = () <- (clock : Clock) {

sleep_ns

sleep_ns = (duration : Int) <- (clock : Clock) {