dependency_executor.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/dependency_executor.bend as Dependency_executor
2 imports
import Base import ./dependency_plan.bend as Plan
Types
type Condition source · line 4 · raw
@Error:Data -> Data
Allowed@Error:Data -> Condition<Error>
Disabled@Error:Data -> Condition<Error>
ConditionError@Error:Data -> @error:Error -> Condition<Error>
ConditionRefused@Error:Data -> Condition<Error>
type Invocation source · line 9 · raw
@Error:Data -> @Out:Data -> Data
Completed@Error:Data -> @Out:Data -> @output:Out -> Invocation<Error, Out>
BodyError@Error:Data -> @Out:Data -> @error:Error -> @output:Out -> Invocation<Error, Out>
AdmissionRefused@Error:Data -> @Out:Data -> Invocation<Error, Out>
type Handling source · line 13 · raw
Data
ContinueHandling
EscalateHandling
type Observation source · line 16 · raw
@Error:Data -> @Out:Data -> Data
Ran@Error:Data -> @Out:Data -> @id:U32 -> @output:Out -> Observation<Error, Out>
BodyFailed@Error:Data -> @Out:Data -> @id:U32 -> @error:Error -> @output:Out -> Observation<Error, Out>
Skipped@Error:Data -> @Out:Data -> @id:U32 -> Observation<Error, Out>
ConditionFailed@Error:Data -> @Out:Data -> @id:U32 -> @error:Error -> Observation<Error, Out>
ConditionRejected@Error:Data -> @Out:Data -> @id:U32 -> Observation<Error, Out>
AdmissionRejected@Error:Data -> @Out:Data -> @id:U32 -> Observation<Error, Out>
type ExecutionResult source · line 23 · raw
@State:Type -> @Requirement:Data -> @Error:Data -> @Out:Data -> Type
Finished@State:Type -> @Requirement:Data -> @Error:Data -> @Out:Data -> @state:State -> @events:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>
Stopped@State:Type -> @Requirement:Data -> @Error:Data -> @Out:Data -> @state:State -> @error:Error -> @events:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>
Invalid@State:Type -> @Requirement:Data -> @Error:Data -> @Out:Data -> @state:State -> @reason:0x704c77730661eff4309838fc738ef615/dependency_plan.Invalid<Requirement> -> ExecutionResult<State, Requirement, Error, Out>
Templates
template handled source · line 28 · raw
@-State:Type -> @-Requirement:Data -> @-Error:Data -> @-Out:Data -> @next:(@_:State -> @_:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>) -> @returned:Pair(State, Handling) -> @error:Error -> @events:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>
template invoked source · line 33 · raw
@-State:Type -> @-Requirement:Data -> @-Error:Data -> @-Out:Data -> @-handler:(@_:State -> @_:Error -> Pair(State, Handling)) -> @next:(@_:State -> @_:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>) -> @returned:Pair(State, Invocation<Error, Out>) -> @+id:U32 -> @events:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>
template conditioned source · line 39 · raw
@-State:Type -> @-Requirement:Data -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:State -> @_:U32 -> Pair(State, Invocation<Error, Out>)) -> @-handler:(@_:State -> @_:Error -> Pair(State, Handling)) -> @next:(@_:State -> @_:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>) -> @returned:Pair(State, Condition<Error>) -> @+id:U32 -> @events:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>
template execute source · line 46 · raw
@-State:Type -> @-Requirement:Data -> @-Error:Data -> @-Out:Data -> @-condition:(@_:State -> @_:U32 -> Pair(State, Condition<Error>)) -> @-dispatch:(@_:State -> @_:U32 -> Pair(State, Invocation<Error, Out>)) -> @-handler:(@_:State -> @_:Error -> Pair(State, Handling)) -> @order:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<Requirement>> -> @state:State -> @events:List<&2, Observation<Error, Out>> -> ExecutionResult<State, Requirement, Error, Out>
template run source · line 55 · raw
@-State:Type -> @-Requirement:Data -> @-Error:Data -> @-Out:Data -> @-condition:(@_:State -> @_:U32 -> Pair(State, Condition<Error>)) -> @-dispatch:(@_:State -> @_:U32 -> Pair(State, Invocation<Error, Out>)) -> @-handler:(@_:State -> @_:Error -> Pair(State, Handling)) -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<Requirement> -> @state:State -> ExecutionResult<State, Requirement, Error, Out>
State contains the actual World, registration, argument, condition and handler owners. Closed providers move that state and never duplicate runtime callbacks. The ordered interpreter chooses one valid order; parallel execution may choose any order permitted by dependencies and access conflicts.