Uses of Interface
io.vavr.concurrent.Promise
Packages that use Promise
Package
Description
This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.
-
Uses of Promise in io.vavr.concurrent
Classes in io.vavr.concurrent that implement PromiseModifier and TypeClassDescription(package private) final classPromiseImpl<T>InternalPromiseimplementation.Methods in io.vavr.concurrent that return PromiseModifier and TypeMethodDescriptionCompletes thisPromisewith the givenvalue.Promise.completeWith(@NonNull Future<? extends T> other) Completes thisPromisewith the result of the givenFutureonce it is completed.static <T> Promise<T> Creates aPromisethat is already completed with a failure, using theFuture.DEFAULT_EXECUTORfor asynchronous operations.static <T> Promise<T> Creates aPromisethat is already completed with a failure, using the specifiedExecutorfor asynchronous operations.Completes thisPromisewith the given exception.static <T> Promise<T> Creates aPromisefrom the givenTry, using theFuture.DEFAULT_EXECUTORfor asynchronous operations.static <T> Promise<T> static <T> Promise<T> Promise.make()Creates a newPromisethat is not yet completed, using theFuture.DEFAULT_EXECUTOR(typicallyForkJoinPool.commonPool()) for asynchronous operations.static <T> Promise<T> Creates a newPromisethat is not yet completed, using the specifiedExecutorfor asynchronous operations.static <T> Promise<T> Narrows aPromise<? extends T>toPromise<T>through a type-safe cast.Completes thisPromisewith the given value.static <T> Promise<T> Promise.successful(@NonNull Executor executor, T result) Creates aPromisethat is already completed successfully, using the specifiedExecutorfor asynchronous operations.static <T> Promise<T> Promise.successful(T result) Creates aPromisethat is already completed successfully, using theFuture.DEFAULT_EXECUTORfor asynchronous operations.Promise.tryCompleteWith(@NonNull Future<? extends T> other) Attempts to complete thisPromisewith the result of the givenFutureonce it is completed.Methods in io.vavr.concurrent with parameters of type Promise