cancelAll method

void cancelAll()

Cooperatively cancels every outstanding execution.

Implementation

void cancelAll() {
  for (final execution
      in List<_TaskExecution>.of(_executions.values, growable: false)) {
    _cancelExecution(execution, TaskSkipReason.cancelledWhileQueued);
  }
}