Android SDK Version


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 TypeMethodDescription
abstract TContinuationResultthen(Task<TTaskResult> task) The function to be called when the task in the parameter is competed.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

then

 abstract TContinuationResultthen(Task<TTaskResult> task)
The function to be called when the task in the parameter is competed.
Parameters:
task - the completed task.