def decide.pkg

ezx@1.11.0.0 · src/add/hub.bend:110

import ezx@1.11.0.0/src/add/hub.bend as Hub
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/lock/world.bend as W
import ezx@1.11.0.0/src/lock/lock.bend as L

110# the package, once it is asked for
111def decide.pkg(got: Maybe<&2, W.Answer>, +hash: String, +world: A.World) -> Verdict:
112  match got:
113    case None{}:
114      Pending{[W.Pkg{hash, L.Hub{}, A.hub(world)}]}
115    case Some{answer}:
116      decide.got(answer, hash, world)

Uses (10)

Used by (1)