PriorityHap.scopedRegister
ScopedRegistrationOf!Reg scopedRegister(Handler handler, int priority) @safeRegister a delegate handler with the given priority and return an RAII handle that detaches automatically at scope exit.
Parameters
handler | Delegate handler to register. |
priority | Lower values run first. |
Returns
A scoped registration owning the registration.
ScopedRegistrationOf!Reg scopedRegister(FunctionHandler handler, int priority) @safeRegister a free-function handler with the given priority and return an RAII handle that detaches automatically at scope exit.
Parameters
handler | Free-function handler to register. |
priority | Lower values run first. |
Returns
A scoped registration owning the registration.