def pre.fail

cswap-bend-cli@0.1.0.0 · usage.bend:134

import cswap-bend-cli@0.1.0.0/usage.bend as Usage
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/usage/gate.bend as UGate

134def pre.fail(e: Maybe<&2, String>, consumed: Maybe<&2, String>, gate: UGate.Gate, +cred: String, +o: Json.Json, +token: String, +active: Bool, +now: U32, +off: U32) -> IO(Fetched):
135  match e:
136    case Some{+k}:
137      pre.stop(dead(k) || deterministic(k), k, gate, cred, o, token, active, now, off, consumed)
138    case None{}:
139      pre.stop(False{}, "transient", gate, cred, o, token, active, now, off, consumed)

Uses (12)

Used by (1)