ReplayHap.emit

void emit(Args args) @safe

Emit 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

argsArguments to emit and store.