cancel method

void cancel()

Implementation

void cancel() {
  _cancelled = true;
  _candidate = null;
  if (!_busy) _pending = null;
}