onCancel method
Called when the attached token is cancelled.
It's not necessary to detach from the token in this method, as cancellation tokens detach from all cancellables automatically when cancelled.
Implementation
@mustCallSuper
void onCancel(Exception cancelException) {
_attachedToken = null;
_isCancelled = true;
}