File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4805,21 +4805,22 @@ public final Observable<T> doOnEach(final Action1<Notification<? super T>> onNot
4805
4805
}
4806
4806
4807
4807
/**
4808
- * Modifies the source Observable so that it notifies an Observer for each item it emits.
4808
+ * Modifies the source Observable so that it notifies an Observer for each item and terminal event it emits.
4809
4809
* <p>
4810
4810
* In case the {@code onError} of the supplied observer throws, the downstream will receive a composite
4811
4811
* exception containing the original exception and the exception thrown by {@code onError}. If either the
4812
4812
* {@code onNext} or the {@code onCompleted} method of the supplied observer throws, the downstream will be
4813
4813
* terminated and will receive this thrown exception.
4814
4814
* <p>
4815
- * <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnEach.png" alt="">
4815
+ * <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnEach.o. png" alt="">
4816
4816
* <dl>
4817
4817
* <dt><b>Scheduler:</b></dt>
4818
4818
* <dd>{@code doOnEach} does not operate by default on a particular {@link Scheduler}.</dd>
4819
4819
* </dl>
4820
4820
*
4821
4821
* @param observer
4822
- * the action to invoke for each item emitted by the source Observable
4822
+ * the observer to be notified about onNext, onError and onCompleted events on its
4823
+ * respective methods before the actual downstream Subscriber gets notified.
4823
4824
* @return the source Observable with the side-effecting behavior applied
4824
4825
* @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a>
4825
4826
*/
You can’t perform that action at this time.
0 commit comments