SharedHap.attach

void attach(this This)(Handler handler) @safe

Attach a delegate handler.

Parameters

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

Attach a free-function handler.

Parameters

handlerFree-function handler to attach; null is ignored.