AsyncTask

Inheritance: java.lang.Object

public final class AsyncTask

The static factory class for creating the asynchronous tasks

Methods

MethodDescription
create(AsyncTaskAction taskAction)Creates the asynchronous task without any result.
create(AsyncTaskFunc taskFunc)Creates the asynchronous task with generic type result.

create(AsyncTaskAction taskAction)

public static IAsyncTask create(AsyncTaskAction taskAction)

Creates the asynchronous task without any result.

Parameters:

ParameterTypeDescription
taskActionAsyncTaskActionThe task action.

Returns: IAsyncTask - The asynchronous task

create(AsyncTaskFunc taskFunc)

public static IAsyncTask create(AsyncTaskFunc taskFunc)

Creates the asynchronous task with generic type result.

Parameters:

ParameterTypeDescription
taskFuncAsyncTaskFuncThe task function.

Returns: IAsyncTask - The asynchronous task