def win.reset

cswap-bend-cli@0.1.0.0 · importu.bend:52

import cswap-bend-cli@0.1.0.0/importu.bend as Importu
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/clock.bend as Clock

52def win.reset(+label: String, +resets: Json.Json, out: Json.Json, +now: U32, +off: U32) -> Result<&2, &2, String, Json.Json>:
53  match resets:
54    case Json.JNull{}:
55      Done{out}
56    case Json.JStr{s}:
57      win.parse(label, s, Clock.parse_iso8601(s), out, now, off)
58    case _:
59      Fail{label ++ ".resetsAt must be an ISO-8601 string"}

Uses (7)

Used by (1)