ScopedRegistration.release

Registration!Handler release() @safe nothrow

Release ownership of the underlying registration without detaching.

The returned Registration can be stored for later manual cleanup. After release(), this scoped wrapper is inert: attached() returns false and detach() returns false. The destructor becomes a no-op.

Returns

The underlying Registration, moved out.