public class StageWithResults<RS,U>
extends java.lang.Object
| Constructor and Description |
|---|
StageWithResults(Stage<U> stage,
RS results) |
| Modifier and Type | Method and Description |
|---|---|
Stage<U> |
proceed()
Continue building the reactive dataflow
|
<R> R |
submit(java.util.function.Function<RS,R> fn)
This method allows the SimpleReact ExecutorService to be reused by JDK parallel streams.
|
public Stage<U> proceed()
public <R> R submit(java.util.function.Function<RS,R> fn)
fn - Function that contains parallelStream code to be executed by the SimpleReact ForkJoinPool (if configured)