def loop.step
ezx@1.11.0.0 · src/pub/run.bend:80
import ezx@1.11.0.0/src/pub/run.bend as Run
import Base
import ezx@1.11.0.0/src/lock/run.bend as Run
import ezx@1.11.0.0/src/pub/world.bend as PW
import ezx@1.11.0.0/src/pub/plan.bend as PP
80
81
82def loop.step(st: PP.Step, +lib: String, world: PW.World, go: PW.World -> IO(Unit)) -> IO(Unit):
83 match st:
84 case PP.Asking{asks}:
85 do IO<Unit>:
86 rs : List<&2, PW.Reply> <- answer.all(lib, asks)
87 go(more(world, rs))
88 case PP.Run{pl}:
89 Run.exec.plan(lib, pl)