Run.loop: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/fetch/run.bend as Run Lines 100-108 of ezx@1.11.0.0/src/fetch/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/fetch/run.bend&start_line=100&end_line=108 import Base import ezx@1.11.0.0/src/fetch/world.bend as FW import ezx@1.11.0.0/src/fetch/plan.bend as FP # the loop, under fuel. A package asks at most twice, for its tree under # BEND_LIB and for its fetch, and every round answers what it asked, so the # fuel is only a guard. def loop(fuel: Nat, +lib: String, +world: FW.World) -> IO(Unit): match fuel: case 0n: IO.die(Unit, 1, "ez: ez fetch kept asking questions") case 1n+f: loop.step(FP.step(world), lib, world, w => loop(f, lib, w)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.die https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/fetch/plan.bend&name=step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/fetch/run.bend&name=loop.step https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/fetch/world.bend&name=World