| Package | Description |
|---|---|
| net.ninjacat.smooth.concurrent |
| Modifier and Type | Method and Description |
|---|---|
Future<E> |
Future.doIt(Callable<E> callable)
Executes block of code in the future.
|
Future<E> |
Future.onFailure(Procedure<Throwable> onFailure)
Sets failed execution handler.
|
Future<E> |
Future.onSuccess(Procedure<E> onSuccess)
Sets successful execution handler.
|
static <E> Future<E> |
Future.run(Callable<E> block)
Shortcut for executing a
Callable with default parameters. |
<T> Future<T> |
Future.then(Func<T,E> transform)
Allows chaining asynchronous operations.
|
Copyright © 2018. All rights reserved.