| Modifier and Type | Method and Description |
|---|---|
<U> FlowFuture<U> |
FlowFuture.applyToEither(FlowFuture<? extends T> alt,
Flows.SerFunction<T,U> fn)
Transform the outcome of the first of two futures to complete successfully.
|
FlowFuture<T> |
FlowFuture.exceptionally(Flows.SerFunction<Throwable,? extends T> fn)
Handle exceptional completion of this future and convert exceptions to the original type of this future.
|
FlowFuture<T> |
FlowFuture.exceptionallyCompose(Flows.SerFunction<Throwable,FlowFuture<T>> fn)
Compose a new computation on to the completion of this future to handle errors,
|
<X> FlowFuture<X> |
FlowFuture.thenApply(Flows.SerFunction<T,X> fn)
Applies a transformation to the successfully completed value of this future.
|
<X> FlowFuture<X> |
FlowFuture.thenCompose(Flows.SerFunction<T,FlowFuture<X>> fn)
Compose a new computation on to the completion of this future
|
Copyright © 2021. All rights reserved.