src/main/java/io/reactivex/Flowable.java
@SuppressWarnings({ "unchecked", "rawtypes" })
    @CheckReturnValue
    @BackpressureSupport(BackpressureKind.FULL)
    @SchedulerSupport(SchedulerSupport.NONE)
    public static <T> Flowable<T> mergeArray(int maxConcurrency, int bufferSize, Publisher<? extends T>... sources) {
        return fromArray(sources).flatMap((Function)Functions.identity(), false, maxConcurrency, bufferSize);
    }
@SuppressWarnings({ "unchecked", "rawtypes" })
    @CheckReturnValue
    @BackpressureSupport(BackpressureKind.FULL)
    @SchedulerSupport(SchedulerSupport.NONE)
    public static <T> Flowable<T> mergeArray(int maxConcurrency, int bufferSize, Publisher<? extends T>... sources) {
        return fromArray(sources).flatMap((Function)Functions.identity(), false, maxConcurrency, bufferSize);
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) @ CheckReturnValue @ BackpressureSupport ( BackpressureKind . FULL ) @ SchedulerSupport ( SchedulerSupport . NONE ) public static < T > Flowable < T > mergeArray ( int maxConcurrency , int bufferSize , Publisher < ? extends T > ... sources ) { return fromArray ( sources ) . flatMap ( ( Function ) Functions . identity ( ) , false , maxConcurrency , bufferSize ) ; }
Flattens an Iterable of Publishers into one Publisher, without any transformation, while limiting the
number of concurrent subscriptions to these Publishers.
<p>
<img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/merge.png" alt="">
<p>
You can combine the items emitted by multiple Publishers so that they appear as a single Publisher, by
using the {@code merge} method.
<dl>
<dt><b>Backpressure:</b></dt>
<dd>The operator honors backpressure from downstream. The source {@code Publisher}s are expected to honor
backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
<dt><b>Scheduler:</b></dt>
<dd>{@code mergeArray} does not operate by default on a particular {@link Scheduler}.</dd>
<dt><b>Error handling:</b></dt>
<dd>If any of the source {@code Publisher}s signal a {@code Throwable} via {@code onError}, the resulting
{@code Flowable} terminates with that {@code Throwable} and all other source {@code Publisher}s are canceled.
If more than one {@code Publisher} signals an error, the resulting {@code Flowable} may terminate with the
first one's error or, depending on the concurrency of the sources, may terminate with a
{@code CompositeException} containing two or more of the various error signals.
{@code Throwable}s that didn't make into the composite will be sent (individually) to the global error handler via
{@link RxJavaPlugins#onError(Throwable)} method as {@code UndeliverableException} errors. Similarly, {@code Throwable}s
signaled by source(s) after the returned {@code Flowable} has been canceled or terminated with a
(composite) error will be sent to the same global error handler.
Use {@link #mergeArrayDelayError(int, int, Publisher[])} to merge sources and terminate only when all source {@code Publisher}s
have completed or failed with an error.
</dd>
</dl>

@param <T> the common element base type
@param sources
the array of Publishers
@param maxConcurrency
the maximum number of Publishers that may be subscribed to concurrently
@param bufferSize
the number of items to prefetch from each inner Publisher
@return a Flowable that emits items that are the result of flattening the items emitted by the
Publishers in the Iterable
@throws IllegalArgumentException
if {@code maxConcurrency} is less than or equal to 0
@see <a href="http://reactivex.io/documentation/operators/merge.html">ReactiveX operators documentation: Merge</a>
@see #mergeArrayDelayError(int, int, Publisher...)
Flattens an Iterable of Publishers into one Publisher without any transformation while limiting the number of concurrent subscriptions to these Publishers . <p > <img width = 640 height = 380 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / merge . png alt = > <p > You can combine the items emitted by multiple Publishers so that they appear as a single Publisher by using the { @code merge } method . <dl > <dt > <b > Backpressure : < / b > < / dt > <dd > The operator honors backpressure from downstream . The source { @code Publisher } s are expected to honor backpressure ; if violated the operator <em > may< / em > signal { @code MissingBackpressureException } . < / dd > <dt > <b > Scheduler : < / b > < / dt > <dd > { @code mergeArray } does not operate by default on a particular { @link Scheduler } . < / dd > <dt > <b > Error handling : < / b > < / dt > <dd > If any of the source { @code Publisher } s signal a { @code Throwable } via { @code onError } the resulting { @code Flowable } terminates with that { @code Throwable } and all other source { @code Publisher } s are canceled . If more than one { @code Publisher } signals an error the resulting { @code Flowable } may terminate with the first one s error or depending on the concurrency of the sources may terminate with a { @code CompositeException } containing two or more of the various error signals . { @code Throwable } s that didn t make into the composite will be sent ( individually ) to the global error handler via { @link RxJavaPlugins#onError ( Throwable ) } method as { @code UndeliverableException } errors . Similarly { @code Throwable } s signaled by source ( s ) after the returned { @code Flowable } has been canceled or terminated with a ( composite ) error will be sent to the same global error handler . Use { @link #mergeArrayDelayError ( int int Publisher [] ) } to merge sources and terminate only when all source { @code Publisher } s have completed or failed with an error . < / dd > < / dl >