cancel method

void cancel(
  1. String tag
)

Implementation

void cancel(String tag) {
  Completer? completer = _runningCompleterMap[tag];
  if (completer != null && !completer.isCompleted) {
    completer.completeError(const CancellationException());
  }
}