def publish_generic
import bendvy-ecs-core@0.1.0.3/execution_stream_channel.bend as ExecutionStreamChannelimport Base
import bendvy-ecs-core@0.1.0.3/machine_stream_queue.bend as Queue
16def publish_generic(-E:Data,store:Store<E>,sequence:Nat,event:E) -> Store<E>:
17 match store:
18 case Store{queue,olderThrough,maintenance}:Store{Queue.publish_generic(E,queue,sequence,[event]),olderThrough,maintenance}