public static android.os.AsyncTask | executeParallel(android.os.AsyncTask task, Params params)Executes the task with the specified parameters, allowing multiple tasks to run in parallel
on a pool of threads managed by {@link android.os.AsyncTask}.
if (task == null) {
throw new IllegalArgumentException("task can not be null");
}
if (Build.VERSION.SDK_INT >= 11) {
// From API 11 onwards, we need to manually select the THREAD_POOL_EXECUTOR
AsyncTaskCompatHoneycomb.executeParallel(task, params);
} else {
// Before API 11, all tasks were run in parallel
task.execute(params);
}
return task;
|