| 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 used when a new computation must be done when the current one succeed.
|
<R> Promise<R> |
Promise.map(FunctionWithError<? super T,? extends R> function)
Method used to map a function.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,R> FunctionWithError<T,R> |
FunctionsHelper.fromFunction(java.util.function.Function<T,R> function) |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> java.util.function.Function<T,Try<R>> |
FunctionsHelper.toFunction(FunctionWithError<T,R> function) |
Copyright © 2020. All rights reserved.