ReplayHap.attach

void attach(Handler handler) @safe

Attach a handler. If a value has been emitted, the handler is invoked immediately with the stored value.

Parameters

handlerDelegate handler to attach; null is ignored.
void attach(FunctionHandler handler) @safe

Attach a free-function handler. If a value has been emitted, the handler is invoked immediately with the stored value.

Parameters

handlerFree-function handler to attach; null is ignored.