unregister method

bool unregister()

Disposes of the registration and unregisters the target callback from the associated CancellationToken.

Implementation

bool unregister() =>
    _node is CallbackNode && _node!.registrations.unregister(_id, _node!);