| Modifier and Type | Method and Description |
|---|---|
FlowFuture<Void> |
FlowFuture.acceptEither(FlowFuture<? extends T> alt,
Flows.SerConsumer<T> fn)
Run an action when the first of two futures completes successfully.
|
Flow |
Flow.addTerminationHook(Flows.SerConsumer<Flow.FlowState> hook)
Adds a termination hook that will be executed upon completion of the whole flow; the provided hook will
received input according to how the flow terminated.
|
FlowFuture<Void> |
FlowFuture.thenAccept(Flows.SerConsumer<T> fn)
Perform an action when this future completes successfully.
|
Copyright © 2021. All rights reserved.