@@ -2846,6 +2846,9 @@ public static <T> Observable<Boolean> sequenceEqual(Observable<? extends T> firs
2846
2846
* these emitted Observables, the Observable returned by {@code switchOnNext} begins emitting the items
2847
2847
* emitted by that Observable. When a new Observable is emitted, {@code switchOnNext} stops emitting items
2848
2848
* from the earlier-emitted Observable and begins emitting items from the new one.
2849
+ * <p>
2850
+ * The resulting Observable completes if both the outer Observable and the last inner Observable, if any, complete.
2851
+ * If the outer Observable signals an onError, the inner Observable is unsubscribed and the error delivered in-sequence.
2849
2852
* <dl>
2850
2853
* <dt><b>Scheduler:</b></dt>
2851
2854
* <dd>{@code switchOnNext} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2872,6 +2875,10 @@ public static <T> Observable<T> switchOnNext(Observable<? extends Observable<? e
2872
2875
* these emitted Observables, the Observable returned by {@code switchOnNext} begins emitting the items
2873
2876
* emitted by that Observable. When a new Observable is emitted, {@code switchOnNext} stops emitting items
2874
2877
* from the earlier-emitted Observable and begins emitting items from the new one.
2878
+ * <p>
2879
+ * The resulting Observable completes if both the main Observable and the last inner Observable, if any, complete.
2880
+ * If the main Observable signals an onError, the termination of the last inner Observable will emit that error as is
2881
+ * or wrapped into a CompositeException along with the other possible errors the former inner Observables signalled.
2875
2882
* <dl>
2876
2883
* <dt><b>Scheduler:</b></dt>
2877
2884
* <dd>{@code switchOnNext} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -8619,6 +8626,9 @@ public final Observable<T> subscribeOn(Scheduler scheduler) {
8619
8626
* Observable that returns an Observable, and then emitting the items emitted by the most recently emitted
8620
8627
* of these Observables.
8621
8628
* <p>
8629
+ * The resulting Observable completes if both the upstream Observable and the last inner Observable, if any, complete.
8630
+ * If the upstream Observable signals an onError, the inner Observable is unsubscribed and the error delivered in-sequence.
8631
+ * <p>
8622
8632
* <img width="640" height="350" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/switchMap.png" alt="">
8623
8633
* <dl>
8624
8634
* <dt><b>Scheduler:</b></dt>
@@ -8640,6 +8650,10 @@ public final <R> Observable<R> switchMap(Func1<? super T, ? extends Observable<?
8640
8650
* Observable that returns an Observable, and then emitting the items emitted by the most recently emitted
8641
8651
* of these Observables and delays any error until all Observables terminate.
8642
8652
* <p>
8653
+ * The resulting Observable completes if both the upstream Observable and the last inner Observable, if any, complete.
8654
+ * If the upstream Observable signals an onError, the termination of the last inner Observable will emit that error as is
8655
+ * or wrapped into a CompositeException along with the other possible errors the former inner Observables signalled.
8656
+ * <p>
8643
8657
* <img width="640" height="350" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/switchMap.png" alt="">
8644
8658
* <dl>
8645
8659
* <dt><b>Scheduler:</b></dt>
0 commit comments