Components/xamandroidsupportv4-18-19.1.0/lib/android/19.1.0/content/support/v4/src/java/android/support/v4/content/AsyncTaskLoader.java
public boolean cancelLoad() {
        if (DEBUG) Log.v(TAG, "cancelLoad: mTask=" + mTask);
        if (mTask != null) {
            if (mCancellingTask != null) {
                // There was a pending task already waiting for a previous
                // one being canceled; just drop it.
                if (DEBUG) Log.v(TAG,
                        "cancelLoad: still waiting for cancelled task; dropping next");
                if (mTask.waiting) {
                    mTask.waiting = false;
                    mHandler.removeCallbacks(mTask);
                }
                mTask = null;
                return false;
            } else if (mTask.waiting) {
                // There is a task, but it is waiting for the time it should
                // execute.  We can just toss it.
                if (DEBUG) Log.v(TAG, "cancelLoad: task is waiting, dropping it");
                mTask.waiting = false;
                mHandler.removeCallbacks(mTask);
                mTask = null;
                return false;
            } else {
                boolean cancelled = mTask.cancel(false);
                if (DEBUG) Log.v(TAG, "cancelLoad: cancelled=" + cancelled);
                if (cancelled) {
                    mCancellingTask = mTask;
                }
                mTask = null;
                return cancelled;
            }
        }
        return false;
    }
/**
     * Attempt to cancel the current load task. See {@link android.os.AsyncTask#cancel(boolean)}
     * for more info.  Must be called on the main thread of the process.
     *
     * <p>Cancelling is not an immediate operation, since the load is performed
     * in a background thread.  If there is currently a load in progress, this
     * method requests that the load be cancelled, and notes this is the case;
     * once the background thread has completed its work its remaining state
     * will be cleared.  If another load request comes in during this time,
     * it will be held until the cancelled load is complete.
     *
     * @return Returns <tt>false</tt> if the task could not be cancelled,
     *         typically because it has already completed normally, or
     *         because {@link #startLoading()} hasn't been called; returns
     *         <tt>true</tt> otherwise.
     */
Attempt to cancel the current load task.

Cancelling is not an immediate operation, since the load is performed
in a background thread.  If there is currently a load in progress, this
method requests that the load be cancelled, and notes this is the case;
once the background thread has completed its work its remaining state
will be cleared.  If another load request comes in during this time,
it will be held until the cancelled load is complete.

@return Returns false if the task could not be cancelled,
typically because it has already completed normally, or
because  #startLoading() hasn't been called; returns
true otherwise.
Attempt to cancel the current load task . Cancelling is not an immediate operation since the load is performed in a background thread . If there is currently a load in progress this method requests that the load be cancelled and notes this is the case ; once the background thread has completed its work its remaining state will be cleared . If another load request comes in during this time it will be held until the cancelled load is complete . @return Returns false if the task could not be cancelled typically because it has already completed normally or because #startLoading () hasn ' t been called ; returns true otherwise .
public boolean cancelLoad() {
        if (DEBUG) Log.v(TAG, "cancelLoad: mTask=" + mTask);
        if (mTask != null) {
            if (mCancellingTask != null) {
                if (DEBUG) Log.v(TAG,
                        "cancelLoad: still waiting for cancelled task; dropping next");
                if (mTask.waiting) {
                    mTask.waiting = false;
                    mHandler.removeCallbacks(mTask);
                }
                mTask = null;
                return false;
            } else if (mTask.waiting) {
                if (DEBUG) Log.v(TAG, "cancelLoad: task is waiting, dropping it");
                mTask.waiting = false;
                mHandler.removeCallbacks(mTask);
                mTask = null;
                return false;
            } else {
                boolean cancelled = mTask.cancel(false);
                if (DEBUG) Log.v(TAG, "cancelLoad: cancelled=" + cancelled);
                if (cancelled) {
                    mCancellingTask = mTask;
                }
                mTask = null;
                return cancelled;
            }
        }
        return false;
    }
public boolean cancelLoad ( ) { if ( DEBUG ) Log . v ( TAG , "cancelLoad: mTask=" + mTask ) ; if ( mTask != null ) { if ( mCancellingTask != null ) { if ( DEBUG ) Log . v ( TAG , "cancelLoad: still waiting for cancelled task; dropping next" ) ; if ( mTask . waiting ) { mTask . waiting = false ; mHandler . removeCallbacks ( mTask ) ; } mTask = null ; return false ; } else if ( mTask . waiting ) { if ( DEBUG ) Log . v ( TAG , "cancelLoad: task is waiting, dropping it" ) ; mTask . waiting = false ; mHandler . removeCallbacks ( mTask ) ; mTask = null ; return false ; } else { boolean cancelled = mTask . cancel ( false ) ; if ( DEBUG ) Log . v ( TAG , "cancelLoad: cancelled=" + cancelled ) ; if ( cancelled ) { mCancellingTask = mTask ; } mTask = null ; return cancelled ; } } return false ; }
Attempt to cancel the current load task.
Attempt to cancel the current load task .
// There was a pending task already waiting for a previous // one being canceled; just drop it. // There is a task, but it is waiting for the time it should // execute.  We can just toss it.