cancel method

void cancel()

Implementation

void cancel() {
  if (null == _completerList) {
    return;
  }
  final completeList = _completerList;
  _completerList = null;

  completeList.forEach((element) {
    element.completeError(Exception("canceled"));
  });
}