AsyncTaskExtension<P, R, T extends AsyncTask<P, R>> extension

extension for AsyncTask Iterable.

on

Properties

allTasksFinished bool
Returns true if all tasks are finished.
no setter
allTasksSubmitted bool
Returns true if all tasks were submitted for execution.
no setter
allTasksSuccessful bool
Returns true if all tasks are finished and successful.
no setter
errorTasks List<T>
Returns a List of tasks with errors.
no setter
finishedTasks List<T>
Returns a List of finished tasks.
no setter
hasIdleTask bool
Returns true if this collection has an idle task.
no setter
hasTaskWithError bool
Returns true if this collection has a task with error.
no setter
idleTasks List<T>
Returns a List of idle tasks.
no setter
notFinishedTasks List<T>
Returns a List of NOT finished tasks.
no setter
submittedTasks List<T>
Returns a List of submitted tasks.
no setter
successfulTasks List<T>
Returns a List of successful tasks.
no setter
tasksResults List<R?>
Returns a List of the current results.
no setter

Methods

executeAndWaitResults(AsyncExecutor executor) Future<List<R>>
Executes the tasks with executor, waits the executions and returns the results.
executeAndWaitTasks(AsyncExecutor executor) Future<List<T>>
Executes the tasks with executor, waits the executions and returns the tasks.
executeTasks(AsyncExecutor executor) List<Future<R>>
Executes the tasks with executor.
tasksWithStatus(AsyncTaskStatus status) List<T>
Returns a List of tasks with status.
waitResults({bool onlySubmitted = false}) Future<List<R>>
Waits the tasks executions and returns a List of results.
waitTasks({bool onlySubmitted = false}) Future<List<T>>
Waits the tasks executions and returns a List of waited tasks.