def leave_run
import bendvy-ecs-core@0.1.0.4/world.bend as Worldimport Base
import bendvy-ecs-core@0.1.0.4/clock_state.bend as Clock
87# Exit an executed run on success or failure, preserving administrative progress.
88def leave_run(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>) -> World<S,C,R,E>:
89 match world:
90 case World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock}:World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,Clock.leave(clock)}