def outcome.of

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

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

729# how the command ends: the first refusal, or success
730def outcome.of(vs: List<&2, Verdict>) -> P.Outcome:
731  match vs:
732    case []:
733      P.Success{}
734    case v <> t:
735      match v:
736        case Stop{why}:
737          P.Refused{why}
738        case _:
739          outcome.of(t)

Uses (3)

Used by (1)