public <V> ProcessChain<V> addFunction(Function<T, V> function, ThreadType type) { processes.add(new ProcessDescription<T, V>(function, type)); return new ProcessChain<V>(executorService, processes); }
public <V> ProcessChain<V> addFunction(Function<T, V> function, ThreadType type) { processes.add(new ProcessDescription<T, V>(function, type)); return new ProcessChain<V>(executorService, processes); }