Most visited

Recently visited

AsyncTaskCompat

public final class AsyncTaskCompat
extends Object

java.lang.Object
   ↳ android.support.v4.os.AsyncTaskCompat


Helper for accessing features in AsyncTask introduced after API level 4 in a backwards compatible fashion.

Summary

Public methods

static <Params, Progress, Result> AsyncTask<Params, Progress, Result> executeParallel(AsyncTask<Params, Progress, Result> task, Params... params)

Executes the task with the specified parameters, allowing multiple tasks to run in parallel on a pool of threads managed by AsyncTask.

Inherited methods

From class java.lang.Object

Public methods

executeParallel

AsyncTask<Params, Progress, Result> executeParallel (AsyncTask<Params, Progress, Result> task, 
                Params... params)

Executes the task with the specified parameters, allowing multiple tasks to run in parallel on a pool of threads managed by AsyncTask.

Parameters
task AsyncTask: The AsyncTask to execute.
params Params: The parameters of the task.
Returns
AsyncTask<Params, Progress, Result> the instance of AsyncTask.

Hooray!