T - The type of result object that the operation producespublic interface Promise<T> extends SuccessPromise<T>
| Modifier and Type | Method and Description |
|---|---|
SuccessPromise<T> |
onError(Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value.
|
void |
then(Action<? super T> then)
Specifies what should be done with the promised object when it is ready.
|
SuccessPromise<T> onError(Action<? super Throwable> errorHandler)
errorHandler - the action to take if an error occursvoid then(Action<? super T> then)
then in interface SuccessPromise<T>then - the action to forward the promised object on to