| Interface | Description |
|---|---|
| OnCancel |
Listener for a
Promise entering a Promise.CANCELLED terminal state. |
| OnComplete |
Listener for a
Promise entering a state where Promise.isDone()
returns true. |
| OnReject<F extends Throwable> |
Listener for a
Promise entering a Promise.REJECTED state. |
| OnResolve<T> |
Listener for a
Promise entering a Promise.RESOLVED state. |
| Promise<T,F extends Throwable> |
A representation of a computation allowing listeners to be notified of state changes.
|
| Exception | Description |
|---|---|
| CancelledException | |
| CompletionException | |
| ListenerException | |
| RejectedException | |
| ResolvedException |
API of Then promises library.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in javadoc in this package are to be interpreted as described in RFC 2119.
Copyright © 2014 MachineCode. All rights reserved.