DependencyExecutor.conditioned: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/dependency_executor.bend as DependencyExecutor Lines 39-44 of bendvy-ecs-core@0.1.0.3/dependency_executor.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&start_line=39&end_line=44 import Base def conditioned(~State:Type,~Requirement:Data,~Error:Data,~Out:Data,~dispatch:State -> U32 -> State & Invocation,~handler:State -> Error -> State & Handling,next:State -> List<&2,Observation> -> ExecutionResult,returned:State & Condition,+id:U32,events:List<&2,Observation>) -> ExecutionResult: match returned: case (state,Allowed{}):invoked(~State,~Requirement,~Error,~Out,~handler,next,dispatch(state,id),id,events) case (state,Disabled{}):next(state,List.append(&2,Observation,events,[Skipped{id}])) case (state,ConditionError{+error}):handled(~State,~Requirement,~Error,~Out,next,handler(state,error),error,List.append(&2,Observation,events,[ConditionFailed{id,error}])) case (state,ConditionRefused{}):next(state,List.append(&2,Observation,events,[ConditionRejected{id}])) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=Condition https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=ExecutionResult https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=Handling https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=Invocation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=Observation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=handled https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/dependency_executor.bend&name=invoked