def synchronize

bendvy-ecs-core@0.1.0.4 · event_family_runtime.bend:25

import bendvy-ecs-core@0.1.0.4/event_family_runtime.bend as EventFamilyRuntime
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W

25# Advanced publication synchronization: thread actual World/state and distribute
26# World log suffix beyond journal length through the generated sync callback.
27# Append nonempty suffix batches at the supplied tick. Caller must preserve the
28# log/journal prefix invariant; this does not execute a barrier or advance readers.
29def synchronize(~S:Data,~C:Type,~R:Type,~P:Data,~F:Type,~H:Type,~sync:F -> Nat -> List<&2,P> -> F,world:W.World<S,C,R,P>,state:State<P,F,H>,tick:Nat) -> W.World<S,C,R,P> & State<P,F,H>:
30  synchronize_world(~S,~C,~R,~P,~F,~H,~sync,state,tick,W.events_view(~S,~C,~R,~P,world))

Uses (7)

Used by (6)