Registration.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, after a moved-from state, or when the source hap is no longer alive also returns false.

Returns

true when the registration was successfully detached.