def barrier_completed

bendvy-ecs-core@0.1.0.4 · world.bend:226

import bendvy-ecs-core@0.1.0.4/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.4/trace_facts.bend as TraceFacts

226# Detach the current pending batch, execute it in FIFO enqueue order, and return
227# World plus operation trace state. Commands enqueued during that drain remain
228# pending for a later barrier; arbitrary callback effects are not transactional.
229def barrier_completed(~S:Data,~C:Type,~R:Type,~E:Data,result:World<S,C,R,E> & TraceFacts.State) -> World<S,C,R,E> & TraceFacts.State:
230  (world,trace)=result
231  (leave_run(~S,~C,~R,~E,world),trace)

Uses (5)

Used by (1)