Skip to content

Commit 8e127a5

Browse files
authored
1.x: update doOnEach(Observer) javadoc (#4024)
1 parent fefe12d commit 8e127a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/rx/Observable.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4805,21 +4805,22 @@ public final Observable<T> doOnEach(final Action1<Notification<? super T>> onNot
48054805
}
48064806

48074807
/**
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.
48094809
* <p>
48104810
* In case the {@code onError} of the supplied observer throws, the downstream will receive a composite
48114811
* exception containing the original exception and the exception thrown by {@code onError}. If either the
48124812
* {@code onNext} or the {@code onCompleted} method of the supplied observer throws, the downstream will be
48134813
* terminated and will receive this thrown exception.
48144814
* <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="">
48164816
* <dl>
48174817
* <dt><b>Scheduler:</b></dt>
48184818
* <dd>{@code doOnEach} does not operate by default on a particular {@link Scheduler}.</dd>
48194819
* </dl>
48204820
*
48214821
* @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.
48234824
* @return the source Observable with the side-effecting behavior applied
48244825
* @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a>
48254826
*/

0 commit comments

Comments
 (0)