RestoreWorld.cancel_pending: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/restore_world.bend as RestoreWorld Lines 7-11 of bendvy-ecs-core@0.1.0.4/restore_world.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_world.bend&start_line=7&end_line=11 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/entity_allocator.bend as Alloc # Internal owner adapter. Pending commands are discarded, never invoked. # The namespace, live payload owners and registration cursors are preserved. def cancel_pending(~S:Data,~C:Type,~R:Type,~E:Data,world:W.World) -> W.World: match world: case W.World{namespace,allocator,store,resource,events,_,registrations,nextSystemId,clock}:W.World{namespace,Alloc.abandon_pending(allocator),store,resource,events,[],registrations,nextSystemId,clock} Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/entity_allocator.bend&name=abandon_pending https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World