File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
src/main/java/io/reactivex Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1107,13 +1107,13 @@ public final Completable doOnComplete(Action onComplete) {
1107
1107
}
1108
1108
1109
1109
/**
1110
- * Returns a Completable which calls the given onDispose callback if the child subscriber cancels
1111
- * the subscription .
1110
+ * Calls the shared {@code Action} if a CompletableObserver subscribed to the current
1111
+ * Completable disposes the common Disposable it received via onSubscribe .
1112
1112
* <dl>
1113
1113
* <dt><b>Scheduler:</b></dt>
1114
1114
* <dd>{@code doOnDispose} does not operate by default on a particular {@link Scheduler}.</dd>
1115
1115
* </dl>
1116
- * @param onDispose the callback to call when the child subscriber disposes the subscription
1116
+ * @param onDispose the action to call when the child subscriber disposes the subscription
1117
1117
* @return the new Completable instance
1118
1118
* @throws NullPointerException if onDispose is null
1119
1119
*/
Original file line number Diff line number Diff line change @@ -2441,13 +2441,14 @@ public final Maybe<T> doFinally(Action onFinally) {
2441
2441
}
2442
2442
2443
2443
/**
2444
- * Calls the shared runnable if a MaybeObserver subscribed to the current Maybe
2444
+ * Calls the shared {@code Action} if a MaybeObserver subscribed to the current Maybe
2445
2445
* disposes the common Disposable it received via onSubscribe.
2446
2446
* <dl>
2447
2447
* <dt><b>Scheduler:</b></dt>
2448
2448
* <dd>{@code doOnDispose} does not operate by default on a particular {@link Scheduler}.</dd>
2449
2449
* </dl>
2450
- * @param onDispose the runnable called when the subscription is cancelled (disposed)
2450
+ * @param onDispose the action called when the subscription is cancelled (disposed)
2451
+ * @throws NullPointerException if onDispose is null
2451
2452
* @return the new Maybe instance
2452
2453
*/
2453
2454
@ CheckReturnValue
Original file line number Diff line number Diff line change @@ -6895,8 +6895,6 @@ public final Observable<T> doFinally(Action onFinally) {
6895
6895
* If the action throws a runtime exception, that exception is rethrown by the {@code dispose()} call,
6896
6896
* sometimes as a {@code CompositeException} if there were multiple exceptions along the way.
6897
6897
* <p>
6898
- * Note that terminal events trigger the action unless the {@code ObservableSource} is subscribed to via {@code unsafeSubscribe()}.
6899
- * <p>
6900
6898
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnUnsubscribe.png" alt="">
6901
6899
* <dl>
6902
6900
* <dt><b>Scheduler:</b></dt>
@@ -6906,6 +6904,7 @@ public final Observable<T> doFinally(Action onFinally) {
6906
6904
* @param onDispose
6907
6905
* the action that gets called when the source {@code ObservableSource}'s Disposable is disposed
6908
6906
* @return the source {@code ObservableSource} modified so as to call this Action when appropriate
6907
+ * @throws NullPointerException if onDispose is null
6909
6908
* @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a>
6910
6909
*/
6911
6910
@CheckReturnValue
Original file line number Diff line number Diff line change @@ -1926,14 +1926,15 @@ public final Single<T> doOnError(final Consumer<? super Throwable> onError) {
1926
1926
}
1927
1927
1928
1928
/**
1929
- * Calls the shared runnable if a SingleObserver subscribed to the current Single
1929
+ * Calls the shared {@code Action} if a SingleObserver subscribed to the current Single
1930
1930
* disposes the common Disposable it received via onSubscribe.
1931
1931
* <dl>
1932
1932
* <dt><b>Scheduler:</b></dt>
1933
1933
* <dd>{@code doOnDispose} does not operate by default on a particular {@link Scheduler}.</dd>
1934
1934
* </dl>
1935
- * @param onDispose the runnable called when the subscription is disposed
1935
+ * @param onDispose the action called when the subscription is disposed
1936
1936
* @return the new Single instance
1937
+ * @throws NullPointerException if onDispose is null
1937
1938
* @since 2.0
1938
1939
*/
1939
1940
@ CheckReturnValue
You can’t perform that action at this time.
0 commit comments