def detached

bendvy-ecs-core@0.1.0.4 · restore_graph_runtime.bend:41

import bendvy-ecs-core@0.1.0.4/restore_graph_runtime.bend as RestoreGraphRuntime
import Base
import bendvy-ecs-core@0.1.0.4/change_tick.bend as Tick
import bendvy-ecs-core@0.1.0.4/restore_graph_data.bend as GraphData
import bendvy-ecs-core@0.1.0.4/restore_graph_machine.bend as Machine
import bendvy-ecs-core@0.1.0.4/restore_data.bend as R
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as Relation
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/restore_graph_public.bend as Public
import bendvy-ecs-core@0.1.0.4/restore_graph_runtime_engine.bend as Engine
import bendvy-ecs-core@0.1.0.4/restore_graph_runtime_state.bend as State
import bendvy-ecs-core@0.1.0.4/event_family_routing.bend as Route
import bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend as Mixed
import bendvy-ecs-core@0.1.0.4/owned_event_family_catalog.bend as Catalog

41def detached(~S:Data,~C:Type,~User:Type,~Logs:Type,~Machines:Type,~P:Data,~F:Type,~EventOwners:Type,~Receipt:Type,~State:Type,~Custom:Data,~stage:State -> R.Position -> D.Field -> State & R.Dispatch<Custom>,~release:State -> State,~clear:Relation.Store<S,C> -> W.Handle<S> -> Relation.Store<S,C> & List<&2,R.Change<S>>,~insert:Relation.Store<S,C> -> Product.Owner<Product.Owner<User,Logs>,Machines> -> State -> List<&2,R.Binding<S>> -> Tick.Tick -> (Relation.Store<S,C> & Product.Owner<Product.Owner<User,Logs>,Machines>) & State,~Recovery:Type,~commit:State -> State,~takeRecovery:State -> State & Recovery,~machineRead:Machines -> Machines & List<&2,D.Field>,~machineCheck:D.Field -> Machine.Dispatch,~machineClear:Machines -> Machines,~machineInstall:Machines -> List<&2,D.Field> -> Machines,~emit:R.Change<S> -> Relation.Notice<S,P>,~retain:Logs -> List<&2,P> -> Logs & Receipt,~drain:Logs -> Logs & Receipt,~clearStreams:F -> F,~catalog:Catalog.Catalog<P,Logs,F,Receipt,retain,drain,clearStreams>,~sync:F -> Nat -> List<&2,P> -> F,owner:Public.Owner<S,C,Product.Owner<User,Logs>,Machines,Relation.Notice<S,P>,State,Custom,stage,release,clear,insert,Recovery,commit,takeRecovery,machineRead,machineCheck,machineClear,machineInstall>,input:GraphData.Snapshot,result:W.World<S,Relation.Store<S,C>,Product.Owner<Product.Owner<User,Logs>,Machines>,Relation.Notice<S,P>> & (Mixed.State<S,P,F,EventOwners> & Nat)) -> Returned<S,Route.Runtime<S,Relation.Store<S,C>,Product.Owner<Product.Owner<User,Logs>,Machines>,Relation.Notice<S,P>,Mixed.State<S,P,F,EventOwners>>,Public.Owner<S,C,Product.Owner<User,Logs>,Machines,Relation.Notice<S,P>,State,Custom,stage,release,clear,insert,Recovery,commit,takeRecovery,machineRead,machineCheck,machineClear,machineInstall>,Recovery,Receipt,Custom>:
42  match result:
43    case (world,metadata):joined(~S,~C,~User,~Logs,~Machines,~P,~F,~EventOwners,~Receipt,~State,~Custom,~stage,~release,~clear,~insert,~Recovery,~commit,~takeRecovery,~machineRead,~machineCheck,~machineClear,~machineInstall,~emit,~retain,~drain,~clearStreams,~catalog,~sync,Engine.run(~S,~C,~Product.Owner<User,Logs>,~Machines,~Relation.Notice<S,P>,~State,~Custom,~stage,~release,~clear,~insert,~Recovery,~commit,~takeRecovery,~machineRead,~machineCheck,~machineClear,~machineInstall,~emit,~(Mixed.State<S,P,F,EventOwners> & Nat),~Receipt,~State.admit(~S,~Relation.Store<S,C>,~User,~Logs,~Machines,~P,~F,~EventOwners,~Receipt,~retain,~drain,~clearStreams,catalog),metadata,owner,world,input))

Uses (25)

Used by (1)