cancel method

void cancel()
inherited

Requests cooperative cancellation of the execution in progress.

Has no effect when the intent is not running. See isCancelled.

Implementation

void cancel() {
  if (_isRunning) _isCancelled = true;
}