def run

bendvy-ecs-core@0.1.0.4 · schedule.bend:112

import bendvy-ecs-core@0.1.0.4/schedule.bend as Schedule
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/system.bend as Sys

112# Run static steps in order after matching Schedule and World namespaces.
113# Evaluate condition by its slot; false records Skipped without dispatch. True
114# threads the actual H through dispatch, stopping on Sys.Failed. Barriers call
115# W.barrier; no implicit final barrier is added. Callbacks are trusted closed
116# providers, not arbitrary capabilities inferred from ids. See ordinary App
117# schedule setup in examples/scheduled-health/application.bend.
118def run(~S: Data,~C: Type,~R: Type,~E: Data,~H: Type,~Error: Data,~dispatch: H -> W.World<S,C,R,E> -> U32 -> H & Sys.Outcome<W.World<S,C,R,E>,Error,Unit>,~condition: W.World<S,C,R,E> -> U32 -> W.World<S,C,R,E> & Bool,schedule: Schedule<S,C,R,E,H>,world: W.World<S,C,R,E>) -> RunResult<S,C,R,E,H,Error>:
119  run_namespace(~S,~C,~R,~E,~H,~Error,~dispatch,~condition,schedule,W.namespace(~S,~C,~R,~E,world))

Uses (10)

Used by (1)