detach method
- @protected
- @mustCallSuper
Detatches from the CancellationToken. This should be called after completing without cancellation.
Implementation
@protected
@mustCallSuper
void detach() {
_attachedToken?.detachCancellable(this);
_attachedToken = null;
}