cancel method

void cancel()

Used to cancel this awaiting take callback

Implementation

void cancel() {
  if (!_cancelled) {
    _cancelled = true;
    if (_cancel != null) _cancel!();
  }
}