ReplayHap.emit
void emit(Args args) @safeEmit and store the value. All handlers are invoked, and the value is stored for replay to future attach calls.
The new value is stored before any handler runs: if a handler throws, the exception propagates to the caller but the stored value is already updated, and later attaches replay it.
Parameters
args | Arguments to emit and store. |