Package io.vavr.concurrent
This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.
A Future represents an asynchronous task. It is a placeholder for a
value that becomes available at some point. With the help of Future we efficiently perform many non-blocking
operations in parallel. The value of a Future is supplied concurrently and can subsequently be used. Multiple
concurrent tasks represented by Futures can be composed to a single Future.
-
Interface Summary Interface Description Future<T> Represents the result of an asynchronous computation that becomes available at some point in the future.Promise<T> APromiseis a write-once container for a read-onlyFuture, allowing the underlyingFutureto be completed with a value or an exception.Task<T> Represents a possibly asynchronous unit of work, called "Task".Task.Complete<T> Completes a task.Task.SyncTask<T> A marker interface for synchronous tasks that are executed immediately. -
Class Summary Class Description FutureImpl<T> INTERNAL API - This class is subject to change.PromiseImpl<T> InternalPromiseimplementation. -
Annotation Types Summary Annotation Type Description GwtIncompatible