OneShotRegistration.cancel

bool cancel() @safe

Cancel the one-shot registration.

Idempotent: returns true on the first successful cancellation, false afterward or after the handler has already fired.

Returns

true when the one-shot was successfully cancelled.