def maintain_generic
import bendvy-ecs-core@0.1.0.3/execution_lifecycle_notices.bend as ExecutionLifecycleNoticesimport Base
86# Bevy ad678262: sub_app.rs update clears trackers after the schedule;
87# world/mod.rs clear_trackers updates removed-component messages. Only the
88# completed public App boundary calls this rotation; reads never rotate it.
89def maintain_generic(-S:Data,journal:Journal<S>) -> Journal<S>:
90 match journal:
91 case Journal{namespace,channels,nextReader,active}:Journal{namespace,rotate_channels_generic(S,channels),nextReader,active}