SharedRegistration.detach

bool detach() @safe

Detach this registration from its source hap.

Detach is idempotent: the first successful call returns true, subsequent calls return false. Detaching after detachAll or after a moved-from state also returns false. The handler list is copied first when a dispatch is in flight.

Returns

true when the registration was successfully detached.