| Package | Description |
|---|---|
| org.smallibs.concurrent.promise | |
| org.smallibs.util |
| Modifier and Type | Method and Description |
|---|---|
default <R> Promise<R> |
Promise.and(FunctionWithError<? super T,R> function)
Method use when a new computation must be done when the current one succeed.
|
<R> Promise<R> |
Promise.map(FunctionWithError<? super T,R> function)
Method use to map a function.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,R> FunctionWithError<T,R> |
FunctionsWithError.fromFunction(java.util.function.Function<T,R> function) |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> java.util.function.Function<T,Try<R>> |
FunctionsWithError.toFunction(FunctionWithError<T,R> function) |
Copyright © 2017. All rights reserved.