SharedHap.attach

void attach(Handler handler) @safe

Attach a delegate handler.

Parameters

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

Attach a free-function handler.

Parameters

handlerFree-function handler to attach; null is ignored.