OneShotRegistration for cancelling the one-shot.PriorityHap.registerOneShot
OneShotRegistrationOf!Reg registerOneShot(Handler handler, int priority) @safeRegister a delegate handler with the given priority that detaches itself after the first invocation.
Parameters
handler | Delegate handler that runs at most once. |
priority | Lower values run first. |
Returns
An
OneShotRegistrationOf!Reg registerOneShot(FunctionHandler handler, int priority) @safeRegister a free-function handler with the given priority that detaches itself after the first invocation.
Parameters
handler | Free-function handler that runs at most once. |
priority | Lower values run first. |
Returns
An
OneShotRegistration for cancelling the one-shot.