| Package | Description |
|---|---|
| net.ninjacat.smooth.concurrent | |
| net.ninjacat.smooth.utils |
| Modifier and Type | Method and Description |
|---|---|
Try<E> |
Future.getResult()
Returns the result of the Future.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Try<T> |
Try.execute(Callable<T> code)
Executes code supplied as
Callable. |
static <T> Try<T> |
Try.failure(Throwable fail)
Creates a failed Try instance.
|
Try<T> |
Try.recover(Callable<T> recoverCode)
Tries to recover from failure with provided
Callable. |
static <T> Try<T> |
Try.success(T value)
Creates a successful Try instance.
|
<S> Try<S> |
Try.then(Func<S,T> mapper)
Allows chaining of several operations depending on result of the previous one.
|
Try<R> |
Try.FunctionExecutor.with(P parameter)
Supplies a parameter to a function which will be executed within
Try |
Copyright © 2018. All rights reserved.