def seal

ezx@1.11.0.0 · src/fetch/plan.bend:741

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

741# a plan that refuses has no effect at all; its reason is how it ends
742def seal(es: List<&2, P.Effect>, outcome: P.Outcome) -> P.Plan:
743  match outcome:
744    case P.Success{}:
745      P.Plan{es, P.Success{}}
746    case P.Refused{why}:
747      P.Plan{[], P.Refused{why}}

Uses (4)

Used by (1)