execution_deferred_schedule.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_deferred_schedule.bend as Execution_deferred_schedule
5 imports
import Base import ./execution_deferred_settings.bend as Settings import ./dependency_plan.bend as Plan import ./dependency_executor.bend as Exec import ./execution_publication_order.bend as Order
Types
type BoundaryKind source · line 7 · raw
Data
Sync@ids:List<&2, U32> -> BoundaryKind
FinalBoundaryKind
type Boundary source · line 10 · raw
Data
ApplyEntered@kind:BoundaryKind -> @requested:List<&2, U32> -> Boundary
ApplyReturned@kind:BoundaryKind -> @remaining:List<&2, U32> -> Boundary
type TraceState source · line 13 · raw
Data
OffTraceState
On@reverse:List<&2, Boundary> -> TraceState
type Metadata source · line 16 · raw
Data
Metadata@syncs:List<&2, U32> -> @publication:List<&2, U32> -> Metadata
type Context source · line 18 · raw
@-Actual:Type -> Type
Context@-Actual:Type -> @state:Actual -> @unapplied:List<&2, U32> -> @metadata:Metadata -> @trace:TraceState -> Context<Actual>
type Outcome source · line 20 · raw
@-Actual:Type -> @Error:Data -> @Out:Data -> Type
Outcome@-Actual:Type -> @Error:Data -> @Out:Data -> @result:0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Actual, String, Error, Out> -> @unapplied:List<&2, U32> -> Outcome<Actual, Error, Out>
type Observed source · line 22 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> Type
Observed@-Actual:Type -> @-Error:Data -> @-Out:Data -> @outcome:Outcome<Actual, Error, Out> -> @boundaries:List<&2, Boundary> -> Observed<Actual, Error, Out>
Definitions
def is_sync source · line 24 · raw
@metadata:Metadata -> @id:U32 -> Bool
def publication source · line 27 · raw
@metadata:Metadata -> List<&2, U32>
def sync_entered source · line 30 · raw
@state:TraceState -> @id:U32 -> @unapplied:List<&2, U32> -> TraceState
def sync_returned source · line 34 · raw
@state:TraceState -> @id:U32 -> @unapplied:List<&2, U32> -> TraceState
def final_entered source · line 38 · raw
@state:TraceState -> @unapplied:List<&2, U32> -> TraceState
def final_returned source · line 42 · raw
@state:TraceState -> @unapplied:List<&2, U32> -> TraceState
def boundaries source · line 46 · raw
@state:TraceState -> List<&2, Boundary>
def include source · line 50 · raw
@+id:U32 -> @+ids:List<&2, U32> -> List<&2, U32>
Templates
template admitted source · line 52 · raw
@-Error:Data -> @-Out:Data -> @+status:0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out> -> @id:U32 -> @ids:List<&2, U32> -> List<&2, U32>
template condition_returned source · line 57 · raw
@-Actual:Type -> @-Error:Data -> @syncs:Metadata -> @unapplied:List<&2, U32> -> @trace:TraceState -> @result:Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>) -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)
template condition_adapter source · line 60 · raw
@-Actual:Type -> @-Error:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @context:Context<Actual> -> @id:U32 -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)
template dispatch_returned source · line 63 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @syncs:Metadata -> @unapplied:List<&2, U32> -> @trace:TraceState -> @id:U32 -> @result:Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>) -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)
template dispatch_id source · line 66 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @context:Context<Actual> -> @+id:U32 -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)
template dispatch_adapter source · line 69 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @context:Context<Actual> -> @id:U32 -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)
template handled source · line 71 · raw
@-Actual:Type -> @syncs:Metadata -> @unapplied:List<&2, U32> -> @trace:TraceState -> @result:Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling) -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)
template handler_adapter source · line 74 · raw
@-Actual:Type -> @-Error:Data -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @context:Context<Actual> -> @error:Error -> Pair(Context<Actual>, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)
template applied source · line 77 · raw
@-Actual:Type -> @syncs:Metadata -> @id:U32 -> @trace:TraceState -> @result:Pair(Actual, List<&2, U32>) -> Context<Actual>
template synchronize source · line 80 · raw
@-Actual:Type -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @context:Context<Actual> -> @+id:U32 -> Context<Actual>
template selected source · line 84 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @next:(@_:Context<Actual> -> @_:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> 0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out>) -> @context:Context<Actual> -> @+id:U32 -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> @isSync:Bool -> 0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out>
template step source · line 88 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @next:(@_:Context<Actual> -> @_:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> 0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out>) -> @context:Context<Actual> -> @+id:U32 -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> 0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out>
template execute source · line 92 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @order:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> @context:Context<Actual> -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> 0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out>
Synthetic sync IDs apply buffers before the next condition and produce no body event.
template planned source · line 96 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @context:Context<Actual> -> 0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out>
template final_applied source · line 100 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @trace:TraceState -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> @result:Pair(Actual, List<&2, U32>) -> Observed<Actual, Error, Out>
template finish source · line 103 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @order:List<&2, U32> -> @finalApply:Bool -> @state:Actual -> @+unapplied:List<&2, U32> -> @trace:TraceState -> @events:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_executor.Observation<Error, Out>> -> Observed<Actual, Error, Out>
template finished source · line 107 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @finalApply:Bool -> @result:0x704c77730661eff4309838fc738ef615/dependency_executor.ExecutionResult<Context<Actual>, String, Error, Out> -> Observed<Actual, Error, Out>
template run_ordered source · line 112 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @trace:TraceState -> @settings:0x704c77730661eff4309838fc738ef615/execution_deferred_settings.Settings -> @syncs:List<&2, U32> -> @order:List<&2, U32> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @state:Actual -> @unapplied:List<&2, U32> -> Observed<Actual, Error, Out>
template run_mode source · line 115 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @trace:TraceState -> @settings:0x704c77730661eff4309838fc738ef615/execution_deferred_settings.Settings -> @+syncs:List<&2, U32> -> @+plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @state:Actual -> @unapplied:List<&2, U32> -> Observed<Actual, Error, Out>
template run_observed source · line 117 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @settings:0x704c77730661eff4309838fc738ef615/execution_deferred_settings.Settings -> @syncs:List<&2, U32> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @state:Actual -> @unapplied:List<&2, U32> -> Observed<Actual, Error, Out>
template unobserved source · line 119 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @value:Observed<Actual, Error, Out> -> Outcome<Actual, Error, Out>
template run source · line 122 · raw
@-Actual:Type -> @-Error:Data -> @-Out:Data -> @-condition:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Condition<Error>)) -> @-dispatch:(@_:Actual -> @_:U32 -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>)) -> @-handler:(@_:Actual -> @_:Error -> Pair(Actual, 0x704c77730661eff4309838fc738ef615/dependency_executor.Handling)) -> @-apply:(@_:List<&2, U32> -> @_:Actual -> Pair(Actual, List<&2, U32>)) -> @settings:0x704c77730661eff4309838fc738ef615/execution_deferred_settings.Settings -> @syncs:List<&2, U32> -> @plan:0x704c77730661eff4309838fc738ef615/dependency_plan.Build<String> -> @state:Actual -> @unapplied:List<&2, U32> -> Outcome<Actual, Error, Out>