Hap.detach

void detach(Handler handler) @safe

Detach the first matching delegate handler by delegate identity.

If the same handler was attached more than once, only the first matching attachment is removed, matching C# multicast delegate removal behavior.

Parameters

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

Detach the first matching free-function handler.

Parameters

handlerFree-function handler to detach; null is ignored.