def alive_then

cswap-bend-cli@0.1.0.0 · daemon/sess.bend:289

import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sess
import Base

289def alive_then(+up: Bool, +pid: U32, +stamp: Maybe<&2, String>) -> IO(Bool):
290  match up:
291    case True{}:
292      with_stamp(pid, stamp)
293    case False{}:
294      IO.pure(Bool, False{})

Uses (7)

Used by (1)