def hold_text

cswap-bend-cli@0.1.0.0 · cliops.bend:283

import cswap-bend-cli@0.1.0.0/cliops.bend as Cliops
import Base
import cswap-bend-cli@0.1.0.0/clock.bend as Clock

283def hold_text(any: Bool, +h: U32) -> String:
284  match any:
285    case True{}:
286      Clock.sel.s(U32.is_gt(h, 0), "; fetching held for up to " ++ U32.show(h) ++ "s", "; holds lifted")
287    case False{}:
288      ""

Uses (7)

Used by (1)