cancelWithReason method

  1. @override
void cancelWithReason(
  1. String? reason
)
override

Cancels all operations using this token with a CancelledException that includes the given reason.

This does not affect the merged tokens.

Implementation

@override
void cancelWithReason(String? reason) {
  cancel(CancelledException(cancellationReason: reason));
}