SharedRegistration for explicit detach.SharedHap.register
SharedRegistration!Handler register(this This)(Handler handler) @safeRegister a delegate handler and return a detachable handle.
Unlike attach, the returned SharedRegistration detaches exactly this handler, even while a dispatch is in flight.
Parameters
handler | Delegate handler to register; null yields an inert handle. |
Returns
A
SharedRegistration!Handler register(this This)(FunctionHandler handler) @safeRegister a free-function handler and return a detachable handle.
Parameters
handler | Free-function handler to register; null yields an inert handle. |
Returns
A
SharedRegistration for explicit detach.