def seal

ezx@1.11.0.0 · src/add/plan.bend:594

import ezx@1.11.0.0/src/add/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/plan.bend as P

594# a plan that refuses has no effect at all; its reason is how it ends
595def seal(es: List<&2, P.Effect>, outcome: P.Outcome) -> P.Plan:
596  match outcome:
597    case P.Success{}:
598      P.Plan{es, P.Success{}}
599    case P.Refused{why}:
600      P.Plan{[], P.Refused{why}}

Uses (4)

Used by (1)