| Modifier and Type | Interface and Description |
|---|---|
interface |
Deferred<T,F,P>
A representation of a computation allowing listeners to be notified of state changes.
|
| Modifier and Type | Method and Description |
|---|---|
Promise<T,F,P> |
Promise.onCancel(OnCancel then)
Triggered when
cancel(boolean) is the first terminal method called. |
Promise<T,F,P> |
Promise.onComplete(OnComplete then)
Triggered on any event after which
isDone() will return true. |
Promise<T,F,P> |
Promise.onGet(Future<?> then)
Triggered when
Future.get(long, java.util.concurrent.TimeUnit) or Future.get() is called. |
Promise<T,F,P> |
Promise.onProgress(OnProgress<? super P> then)
Triggered when
Deferred.progress(Object) is called. |
Promise<T,F,P> |
Promise.onReject(OnReject<? super F> then)
Triggered when
Deferred.reject(Object) is the first terminal method called. |
Promise<T,F,P> |
Promise.onResolve(OnResolve<? super T> then)
Triggered when
Deferred.resolve(Object) is the first terminal method called. |
Promise<T,F,P> |
Deferred.promise()
Produces a readonly view of this Deferred.
|
<Tx,Fx,Px> Promise<Tx,Fx,Px> |
Promise.then(Progress<? super T,? super F,? super P,Tx,Fx,Px> then)
Return a new promise that will have the resolved value of the original
Promise converted to
the new type using then. |
<Tx,Fx> Promise<Tx,Fx,P> |
Promise.then(Reject<? super T,? super F,Tx,Fx,P> then)
Return a new promise that will have the resolved value of the original
Promise converted to
the new type using then. |
<Tx> Promise<Tx,F,P> |
Promise.then(Resolve<? super T,Tx,F,P> then)
|
Copyright © 2015 MachineCode. All rights reserved.