-
public interface Continuation<TTaskResult extends Object, TContinuationResult extends Object>
A function to be called after a task completes.
If you wish to have the Task from a Continuation that does not return a Task be cancelled then throw a java.util.concurrent.CancellationException from the Continuation.
-
-
Method Summary
Modifier and Type Method Description abstract TContinuationResult
then(Task<TTaskResult> task)
The function to be called when the task in the parameter is competed. -
-
Method Detail
-
then
abstract TContinuationResult then(Task<TTaskResult> task)
The function to be called when the task in the parameter is competed.
- Parameters:
task
- the completed task.
-
-
-
-