Skip to content

Commit

Permalink
customize diagram/javadocs for doOnTerminate()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMGross committed Feb 22, 2014
1 parent 3a1c5f5 commit 747f97e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rxjava-core/src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -4389,15 +4389,16 @@ public final void onNext(T args) {
}

/**
* Modifies an Observable so that it invokes an action when it calls {@code onCompleted} or {@code onError} <p>
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnCompleted.png">
* Modifies an Observable so that it invokes an action when it calls {@code onCompleted} or {@code onError}.
* <p>
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnTerminate.png">
* <p>
* This differs from {@code finallyDo} in that this happens BEFORE onCompleted/onError are emitted.
*
* @param onTerminate
* the action to invoke when the source Observable calls {@code onCompleted} or {@code onError}
* @return the source Observable with the side-effecting behavior applied
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#wiki-dooncompleted">RxJava Wiki: doOnCompleted()</a>
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#wiki-doonterminate">RxJava Wiki: doOnTerminate()</a>
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229804.aspx">MSDN: Observable.Do</a>
*/
public final Observable<T> doOnTerminate(final Action0 onTerminate) {
Expand Down

0 comments on commit 747f97e

Please sign in to comment.