def run

bendvy-ecs-core@0.1.0.4 · ordinary_owned_event_family_publisher.bend:36

import bendvy-ecs-core@0.1.0.4/ordinary_owned_event_family_publisher.bend as OrdinaryOwnedEventFamilyPublisher
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/transaction.bend as T
import bendvy-ecs-core@0.1.0.4/ordinary_owned_event_declaration.bend as D

36# Validate the publisher registration, then execute its staged body.
37# Admission refusal returns original Args/Registry/World. Completion is outer
38# Succeeded with Reply containing actual publication outcome, Out and typed
39# recovery; inspect Reply.outcome rather than assuming publication succeeded.
40# Publication contract: docs/parity/affine-events.md.
41def run(~S:Data,~C:Type,~R:Type,~E:Data,~Recovery:Type,~Ops:Type -> Type,~builder:D.Builder(~W.World<S,C,R,E>,~Recovery,~Ops),~declaration:D.Declaration<S,W.World<S,C,R,E>,Recovery,Ops,builder>,~Args:Type,~Error:Data,~Out:Type,~body:@-J:Type -> @-caps:Ops(J) -> Args -> J -> J & (T.Outcome<Error> & Out),registry:Sys.Registry<S,C,R,E,Args,Unit,Reply<Error,Out,Recovery>,runner(~S,~C,~R,~E,~Recovery,~Ops,~builder,~declaration,~Args,~Error,~Out,~body)>,world:W.World<S,C,R,E>,args:Args) -> Sys.RunResult<S,C,R,E,Args,Unit,Reply<Error,Out,Recovery>,runner(~S,~C,~R,~E,~Recovery,~Ops,~builder,~declaration,~Args,~Error,~Out,~body)>:
42  Sys.run(~S,~C,~R,~E,~Args,~Unit,~Reply<Error,Out,Recovery>,~runner(~S,~C,~R,~E,~Recovery,~Ops,~builder,~declaration,~Args,~Error,~Out,~body),registry,world,args)

Uses (11)

Used by (0)

No other definition uses this definition.