A io.vavr.concurrent.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.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | Future<
Type of the computation result. T>A Future is a computation result that becomes available at some point. |
| public interface | Promise<
The result type of the underlying T>Future.A Promise is a write-once wrapper around a read-only Future which can complete the underlying Future with a value or an exception. |
| public interface | Task<
result type T>
Deprecated
Experimental API
Represents a possibly asynchronous unit of work, called "Task".
|
| Modifier and Type | Annotation and Description |
|---|---|
| pack-priv @interface |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class |