TaskItem<T> Interface

Type Parameters

T

the task result type

public interface TaskItem

Type representing a task in a task group TaskGroup.

Method Summary

Modifier and Type Method and Description
Observable<T> executeAsync()

Executes the task asynchronously.

boolean isHot()
void prepare()

method that gets called before start executing all the tasks in the task group TaskGroup in which this task belongs to.

T result()

Method Details

executeAsync

public Observable executeAsync()

Executes the task asynchronously.

Returns:

the handle of the asynchronous operation

isHot

public boolean isHot()

Returns:

true if the observable returned by executeAsync is a hot observable, false if its a cold observable.

prepare

public void prepare()

method that gets called before start executing all the tasks in the task group TaskGroup in which this task belongs to.

result

public T result()

Returns:

the result of the task execution

Applies to