public class StageWithResults<RS,U>
extends java.lang.Object
| Constructor and Description |
|---|
StageWithResults(ConfigurableStream<U,java.lang.Object> stage,
RS results) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
submit(java.util.concurrent.Callable<T> callable)
This method allows the SimpleReact Executor to be reused by JDK parallel streams
|
<R> R |
submit(java.util.function.Function<RS,R> fn)
This method allows the SimpleReact Executor to be reused by JDK parallel streams.
|
public StageWithResults(ConfigurableStream<U,java.lang.Object> stage, RS results)
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)public <T> T submit(java.util.concurrent.Callable<T> callable)
callable - that contains code