type Registration

bendvy-ecs-core@0.1.0.4 · event_family_routing.bend:19

import bendvy-ecs-core@0.1.0.4/event_family_routing.bend as EventFamilyRouting
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
import bendvy-ecs-core@0.1.0.4/event_runtime.bend as Ev
import bendvy-ecs-core@0.1.0.4/event_stream.bend as Leaf

19# Successful registration retains runtime, actual reader and actual registry;
20# failure returns runtime without dropping heterogeneous family owners.
21type Registration<S:Data,C:Type,R:Type,P:Data,E:Data,F:Type,A:Type,Error:Data,O:Type,-take:F -> F & Leaf.Stream<S,E>,-put:F -> Leaf.Stream<S,E> -> F,-runner:W.World<S,C,R,P> -> Ev.Input<E,A> -> Sys.Outcome<W.World<S,C,R,P>,Error,O>> is Type:
22  Registered{runtime:Runtime<S,C,R,P,F>,reader:Reader<S,E,F,take,put>,registry:Sys.Registry<S,C,R,P,Ev.Input<E,A>,Error,O,runner>}
23  RegistrationFailed{runtime:Runtime<S,C,R,P,F>}

Uses (8)

Used by (16)