Located in compilation unit of io.
Promise implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final FutureImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Executor | executor()
Overrides default io. Returns the |
| public ExecutorService | executorService()
Implements io.
Deprecated
This method is deprecated. |
| public Future | future()
Implements io. Returns the underlying |
| public String | |
| public boolean | tryComplete(Try<? extends T>
Either a value)Try. containing the result or a Try. containing an exception.Implements io. Attempts to completes this |
| future | back to summary |
|---|---|
| private final FutureImpl<T> future | |
| PromiseImpl | back to summary |
|---|---|
| pack-priv PromiseImpl(FutureImpl<T> future) | |
| executor | back to summary |
|---|---|
| public Executor executor() Overrides default io. Doc from io. Returns the | |
| executorService | back to summary |
|---|---|
| public ExecutorService executorService() Implements io. Doc from io. Deprecated
This method is deprecated.
THE DEFAULT IMPLEMENTATION (obtained by one of the
| |
| future | back to summary |
|---|---|
| public Future Implements io. Doc from io. Returns the underlying | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| tryComplete | back to summary |
|---|---|
| public boolean tryComplete(Try<? extends T> value) Implements io. Doc from io. Attempts to completes this
| |