| Interface | Description |
|---|---|
| Future<T> |
Future is an abstraction to deal with asynchronicity without having to use callbacks directly or blocking threads. |
| InterruptHandler |
Interrupts provide a way to send signals to the current pending
Promise given a Future composition. |
| Responder<T> |
Callback to be used with future.respond.
|
| Transformer<T,U> |
Interface to be used by future.transform.
|
| Class | Description |
|---|---|
| FuturePool |
A
FuturePool isolates portions of a Future composition on a separate thread pool. |
| Local<T> |
Locals are a mechanism similar to ThreadLocal but for asynchronous computations. |
| Promise<T> |
Promise is a Future that provides methods to set its result.
|
| Tailrec |
Tailrec e ensures that recursive futures are stack-safe. |
| Exception | Description |
|---|---|
| CheckedFutureException |
Wrapper exception is used to convert the checked exception into a runtime exception so it can be thrown by blocking methods like
future.get. |
| TimeoutException |
Exception thrown when a blocking operation like future.get times out.
|
Copyright © 2017. All Rights Reserved.