exception property

  1. @override
Exception? exception
override

The exception given when one of the merged tokens was cancelled.

Returns null if none of the merged tokens have been cancelled yet.

If the MergedCancellationToken wasn't attached to any cancellables at the time of cancellation, this will return the exception of the first cancelled token in the list of merged tokens. Otherwise, the exception from the merged token that was cancelled first will be used.

Implementation

@override
Exception? get exception {
  _updateCancellationStatus();
  return _cancelledException;
}