Android APIs
public class

AsyncTaskCompat

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

Class Overview

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

Summary

Public Constructors
AsyncTaskCompat()
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AsyncTaskCompat ()

Public Methods

public static 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 The AsyncTask to execute.
params The parameters of the task.
Returns
  • the instance of AsyncTask.