@@ -2965,6 +2965,19 @@ public static <T> Flowable<T> mergeArray(int maxConcurrency, int bufferSize, Pub
2965
2965
* backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd>
2966
2966
* <dt><b>Scheduler:</b></dt>
2967
2967
* <dd>{@code merge} does not operate by default on a particular {@link Scheduler}.</dd>
2968
+ * <dt><b>Error handling:</b></dt>
2969
+ * <dd>If any of the source {@code Publisher}s signal a {@code Throwable} via {@code onError}, the resulting
2970
+ * {@code Flowable} terminates with that {@code Throwable} and all other source {@code Publisher}s are cancelled.
2971
+ * If more than one {@code Publisher} signals an error, the resulting {@code Flowable} may terminate with the
2972
+ * first one's error or, depending on the concurrency of the sources, may terminate with a
2973
+ * {@code CompositeException} containing two or more of the various error signals.
2974
+ * {@code Throwable}s that didn't make into the composite will be sent (individually) to the global error handler via
2975
+ * {@link RxJavaPlugins#onError(Throwable)} method as <em>undeliverable errors</em>. Similarly, {@code Throwable}s
2976
+ * signaled by source(s) after the returned {@code Flowable} has been cancelled or terminated with a
2977
+ * (composite) error will be sent to the same global error handler.
2978
+ * Use {@link #mergeDelayError(Iterable)} to merge sources and terminate only when all source {@code Publisher}s
2979
+ * have completed or failed with an error.
2980
+ * </dd>
2968
2981
* </dl>
2969
2982
*
2970
2983
* @param <T> the common element base type
@@ -2973,6 +2986,7 @@ public static <T> Flowable<T> mergeArray(int maxConcurrency, int bufferSize, Pub
2973
2986
* @return a Flowable that emits items that are the result of flattening the items emitted by the
2974
2987
* Publishers in the Iterable
2975
2988
* @see <a href="http://reactivex.io/documentation/operators/merge.html">ReactiveX operators documentation: Merge</a>
2989
+ * @see #mergeDelayError(Iterable)
2976
2990
*/
2977
2991
@SuppressWarnings({ "unchecked", "rawtypes" })
2978
2992
@CheckReturnValue
0 commit comments