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 class
PromiseImpl<T>
InternalPromise
implementation.Methods in io.vavr.concurrent that return PromiseModifier and TypeMethodDescriptionCompletes thisPromise
with the givenvalue
.Promise.completeWith
(Future<? extends T> other) Completes thisPromise
with the givenFuture
, once thatFuture
is completed.static <T> Promise
<T> Creates a failedPromise
, backed by theFuture.DEFAULT_EXECUTOR
.static <T> Promise
<T> Creates a failedPromise
, backed by the givenExecutor
.Completes thisPromise
with the givenexception
.static <T> Promise
<T> static <T> Promise
<T> static <T> Promise
<T> Promise.make()
Makes aPromise
that isn't fulfilled yet, backed by theFuture.DEFAULT_EXECUTOR
.static <T> Promise
<T> Makes aPromise
that isn't fulfilled yet, backed by the givenExecutor
.static <T> Promise
<T> Narrows a widenedPromise<? extends T>
toPromise<T>
by performing a type-safe cast.Completes thisPromise
with the givenvalue
.static <T> Promise
<T> Promise.successful
(Executor executor, T result) Creates a succeededPromise
, backed by the givenExecutor
.static <T> Promise
<T> Promise.successful
(T result) Creates a succeededPromise
, backed by theFuture.DEFAULT_EXECUTOR
.Promise.tryCompleteWith
(Future<? extends T> other) Attempts to complete thisPromise
with the specifiedFuture
, once thatFuture
is completed.Methods in io.vavr.concurrent with parameters of type Promise