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# the planner's step: its questions answered and the loop gone round again,
81# or its plan run
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)

Uses (11)

Used by (1)