@@ -163,13 +163,21 @@ public abstract class Flowable<@NonNull T> implements Publisher<T> {
163
163
* Mirrors the one {@link Publisher} in an {@link Iterable} of several {@code Publisher}s that first either emits an item or sends
164
164
* a termination notification.
165
165
* <p>
166
- * <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.v3.png" alt="">
166
+ * <img width="640" height="417" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Flowable.amb.png" alt="">
167
+ * <p>
168
+ * When one of the {@code Publisher}s signal an item or terminates first, all subscriptions to the other
169
+ * {@code Publisher}s are canceled.
167
170
* <dl>
168
171
* <dt><b>Backpressure:</b></dt>
169
172
* <dd>The operator itself doesn't interfere with backpressure which is determined by the winning
170
173
* {@code Publisher}'s backpressure behavior.</dd>
171
174
* <dt><b>Scheduler:</b></dt>
172
175
* <dd>{@code amb} does not operate by default on a particular {@link Scheduler}.</dd>
176
+ * <dt><b>Error handling:</b></dt>
177
+ * <dd>
178
+ * If any of the losing {@code Publisher}s signals an error, the error is routed to the global
179
+ * error handler via {@link RxJavaPlugins#onError(Throwable)}.
180
+ * </dd>
173
181
* </dl>
174
182
*
175
183
* @param <T> the common element type
@@ -193,13 +201,21 @@ public static <T> Flowable<T> amb(@NonNull Iterable<@NonNull ? extends Publisher
193
201
* Mirrors the one {@link Publisher} in an array of several {@code Publisher}s that first either emits an item or sends
194
202
* a termination notification.
195
203
* <p>
196
- * <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.v3.png" alt="">
204
+ * <img width="640" height="417" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Flowable.ambArray.png" alt="">
205
+ * <p>
206
+ * When one of the {@code Publisher}s signal an item or terminates first, all subscriptions to the other
207
+ * {@code Publisher}s are canceled.
197
208
* <dl>
198
209
* <dt><b>Backpressure:</b></dt>
199
210
* <dd>The operator itself doesn't interfere with backpressure which is determined by the winning
200
211
* {@code Publisher}'s backpressure behavior.</dd>
201
212
* <dt><b>Scheduler:</b></dt>
202
213
* <dd>{@code ambArray} does not operate by default on a particular {@link Scheduler}.</dd>
214
+ * <dt><b>Error handling:</b></dt>
215
+ * <dd>
216
+ * If any of the losing {@code Publisher}s signals an error, the error is routed to the global
217
+ * error handler via {@link RxJavaPlugins#onError(Throwable)}.
218
+ * </dd>
203
219
* </dl>
204
220
*
205
221
* @param <T> the common element type
@@ -5927,13 +5943,22 @@ public final Single<Boolean> all(@NonNull Predicate<? super T> predicate) {
5927
5943
* Mirrors the {@link Publisher} (current or provided) that first either emits an item or sends a termination
5928
5944
* notification.
5929
5945
* <p>
5930
- * <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.v3.png" alt="">
5946
+ * <img width="640" height="376" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Flowable.ambWith.png" alt="">
5947
+ * <p>
5948
+ * When the current {@code Flowable} signals an item or terminates first, the subscription to the other
5949
+ * {@code Publisher} is canceled. If the other {@code Publisher} signals an item or terminates first,
5950
+ * the subscription to the current {@code Flowable} is canceled.
5931
5951
* <dl>
5932
5952
* <dt><b>Backpressure:</b></dt>
5933
5953
* <dd>The operator itself doesn't interfere with backpressure which is determined by the winning
5934
5954
* {@code Publisher}'s backpressure behavior.</dd>
5935
5955
* <dt><b>Scheduler:</b></dt>
5936
5956
* <dd>{@code ambWith} does not operate by default on a particular {@link Scheduler}.</dd>
5957
+ * <dt><b>Error handling:</b></dt>
5958
+ * <dd>
5959
+ * If the losing {@code Publisher} signals an error, the error is routed to the global
5960
+ * error handler via {@link RxJavaPlugins#onError(Throwable)}.
5961
+ * </dd>
5937
5962
* </dl>
5938
5963
*
5939
5964
* @param other
0 commit comments