MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / cancel

Method cancel

core/java/android/os/AsyncTask.java:466–469  ·  view source on GitHub ↗

Attempts to cancel execution of this task. This attempt will fail if the task has already completed, already been cancelled, or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task should never run. If the task has a

(boolean mayInterruptIfRunning)

Source from the content-addressed store, hash-verified

464 * @see #onCancelled(Object)
465 */
466 public final boolean cancel(boolean mayInterruptIfRunning) {
467 mCancelled.set(true);
468 return mFuture.cancel(mayInterruptIfRunning);
469 }
470
471 /**
472 * Waits if necessary for the computation to complete, and then

Callers

nothing calls this directly

Calls 2

cancelMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected