| Modifier and Type | Method and Description |
|---|---|
Promise<T,F> |
Promise.onCancel(OnCancel then)
Triggered on any event after which
isCancelled() will return true. |
Promise<T,F> |
Promise.onComplete(OnComplete then)
Triggered on any event after which
isDone() will return true;
Will be fired in addition to the callback for the specific event. |
Promise<T,F> |
Promise.onGet(Future<?> then)
Triggered when
Future.get(long, TimeUnit) or Future.get() is called. |
Promise<T,F> |
Promise.onReject(OnReject<F> then)
Triggered on any event after which
isRejected() will return true. |
Promise<T,F> |
Promise.onResolve(OnResolve<T> then)
Triggered on any event after which
isResolved() will return true. |
Copyright © 2014 MachineCode. All rights reserved.