cancelAsyncOperation method

  1. @protected
  2. @mustCallSuper
void cancelAsyncOperation([
  1. Object? key
])

cancel async opertion

Implementation

@protected
@mustCallSuper
void cancelAsyncOperation([Object? key]) {
  final Object asyncKey = key ?? _defaultKey;
  final int? gen = _genMap[asyncKey];
  if (gen != null) {
    _genMap[asyncKey] = gen + 1;
  }
}