def emit
import bendvy-ecs-core@0.1.0.4/compose.bend as Composeimport Base
import world.bend as W
import transaction.bend as T
107# Advanced row operation staging a Data event in Tx; publication occurs only
108# after successful execution finish. This does not synchronize an event Runtime.
109def emit(~S: Data,~Store: Type,~R: Type,~E: Data,frame: Frame<S,Store,R,E>,event: E) -> Frame<S,Store,R,E>:
110 match frame:
111 case Frame{tx,handle,error,cursor}: Frame{T.emit(~W.World<S,Store,R,E>,~E,tx,event),handle,error,cursor}