Skip to content

Most visited

Recently visited

navigation

AsyncTaskCompat

public final class AsyncTaskCompat
extends Object

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


This class was deprecated in API level 26.0.0-alpha1.
Use AsyncTask directly.

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)

This method was deprecated in API level 26.0.0-alpha1. Use executeOnExecutor(Executor, Object[]) directly.

Inherited methods

From class java.lang.Object

Public methods

executeParallel

added in version 22.0.0
AsyncTask<Params, Progress, Result> executeParallel (AsyncTask<Params, Progress, Result> task, 
                Params... params)

This method was deprecated in API level 26.0.0-alpha1.
Use executeOnExecutor(Executor, Object[]) directly.

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.