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(Future<? extends T> other) Completes thisPromisewith the givenFuture, once thatFutureis 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 thisPromisewith the givenexception.static <T> Promise<T> static <T> Promise<T> static <T> Promise<T> Promise.make()Makes aPromisethat isn't fulfilled yet, backed by theFuture.DEFAULT_EXECUTOR.static <T> Promise<T> Makes aPromisethat 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 thisPromisewith 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 thisPromisewith the specifiedFuture, once thatFutureis completed.Methods in io.vavr.concurrent with parameters of type Promise