| Modifier and Type | Method and Description |
|---|---|
IPromise<R> |
onException(OnException onException)
Sets the action to execute when the IPromise ends with an exception
|
IPromise<R> |
onSuccess(OnSuccess<R> onSuccess)
Sets the action to execute when the IPromise ends successful
|
@NotNull IPromise<R> onSuccess(@Nullable OnSuccess<R> onSuccess)
onSuccess - The Functional Interface@NotNull IPromise<R> onException(@Nullable OnException onException)
onException - The Functional InterfaceCopyright © 2017. All rights reserved.