def sleep

cswap-bend-cli@0.1.0.0 · daemon/events.bend:167

import cswap-bend-cli@0.1.0.0/daemon/events.bend as Events
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

167# `seconds` is deciseconds (round(seconds, 1)).
168def sleep(+ts: String, +deci: U32, +until: String) -> Json.Json:
169  event("sleep", ts, pair("seconds", Json.JNum{U32.show((deci / 10 : U32)) ++ "." ++ U32.show((deci % 10 : U32))}, pair("until", str(until), Json.JNil{})))

Uses (10)

Used by (1)