def barrier
import bendvy-ecs-core@0.1.0.4/world.bend as Worldimport Base
import bendvy-ecs-core@0.1.0.4/trace_facts.bend as TraceFacts
import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred
238# Apply the current pending command batch in FIFO order with tracing disabled.
239# Returns World; it neither invents a transaction rollback nor recursively drains
240# new work queued by those commands. See commands.bend for lifecycle adapters.
241def barrier(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>) -> World<S,C,R,E>:
242 Deferred.world_only(~World<S,C,R,E>,barrier_traced(~S,~C,~R,~E,world,TraceFacts.Off{}))