Class PromiseImpl<T>
java.lang.Object
io.vavr.concurrent.PromiseImpl<T>
- Type Parameters:
T- result type
- All Implemented Interfaces:
Promise<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Promise
complete, completeWith, failure, isCompleted, success, tryCompleteWith, tryFailure, trySuccess
-
Field Details
-
future
-
-
Constructor Details
-
PromiseImpl
PromiseImpl(FutureImpl<T> future)
-
-
Method Details
-
executor
-
executorService
Deprecated.Description copied from interface:PromiseThis method is deprecated.THE DEFAULT IMPLEMENTATION (obtained by one of the
Promisefactory methods) MIGHT THROW ANUnsupportedOperationExceptionAT RUNTIME, DEPENDING ON WHATFuture.executorService()returns.- Specified by:
executorServicein interfacePromise<T>- Returns:
- (never)
-
future
-
tryComplete
Description copied from interface:PromiseAttempts to completes thisPromisewith the givenvalue.- Specified by:
tryCompletein interfacePromise<T>- Parameters:
value- Either aTry.Successcontaining the result or aTry.Failurecontaining an exception.- Returns:
falseif thisPromisehas already been completed,trueotherwise.
-
toString
-