src/main/java/io/reactivex/parallel/ParallelFlowable.java
@CheckReturnValue
    @NonNull
    public final <R> ParallelFlowable<R> reduce(@NonNull Callable<R> initialSupplier, @NonNull BiFunction<R, ? super T, R> reducer) {
        ObjectHelper.requireNonNull(initialSupplier, "initialSupplier");
        ObjectHelper.requireNonNull(reducer, "reducer");
        return RxJavaPlugins.onAssembly(new ParallelReduce<T, R>(this, initialSupplier, reducer));
    }
@CheckReturnValue
    @NonNull
    public final <R> ParallelFlowable<R> reduce(@NonNull Callable<R> initialSupplier, @NonNull BiFunction<R, ? super T, R> reducer) {
        ObjectHelper.requireNonNull(initialSupplier, "initialSupplier");
        ObjectHelper.requireNonNull(reducer, "reducer");
        return RxJavaPlugins.onAssembly(new ParallelReduce<T, R>(this, initialSupplier, reducer));
    }
@ CheckReturnValue @ NonNull public final < R > ParallelFlowable < R > reduce ( @ NonNull Callable < R > initialSupplier , @ NonNull BiFunction < R , ? super T , R > reducer ) { ObjectHelper . requireNonNull ( initialSupplier , "initialSupplier" ) ; ObjectHelper . requireNonNull ( reducer , "reducer" ) ; return RxJavaPlugins . onAssembly ( new ParallelReduce < T , R > ( this , initialSupplier , reducer ) ) ; }
Reduces all values within a 'rail' to a single value (with a possibly different type) via
a reducer function that is initialized on each rail from an initialSupplier value.
<p>
Note that the same mapper function may be called from multiple threads concurrently.
@param <R> the reduced output type
@param initialSupplier the supplier for the initial value
@param reducer the function to reduce a previous output of reduce (or the initial value supplied)
with a current source value.
@return the new ParallelFlowable instance
Reduces all values within a rail to a single value ( with a possibly different type ) via a reducer function that is initialized on each rail from an initialSupplier value . <p > Note that the same mapper function may be called from multiple threads concurrently .