def barrier_completed

bendvy-ecs-core@0.1.0.3 · world.bend:228

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

228# Detach the current pending batch, execute it in FIFO enqueue order, and return
229# World plus operation trace state. Commands enqueued during that drain remain
230# pending for a later barrier; arbitrary callback effects are not transactional.
231def 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:
232  (world,trace)=result
233  (leave_run(~S,~C,~R,~E,world),trace)

Uses (5)

Used by (1)