Code example for LinkedBlockingQueue

Methods: clear

0
*/ 
        FINISHED,
    } 
 
public static void clearQueue() { 
sWorkQueue.clear();
} 
 
    /** 
* Creates a new asynchronous task. This constructor must be invoked on the UI thread. 
*/ 
    public AsyncTaskEx() { 
        mWorker = new WorkerRunnable<Params, Result>() {
            public Result call() throws Exception { 
                Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
                return doInBackground(mParams);
            } 
        }; 
 
        mFuture = new FutureTask<Result>(mWorker) {
            @Override