File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -10363,11 +10363,16 @@ public void call(Subscriber<? super T> observer) {
10363
10363
* its subscribers. Each un-subscription will result in an invocation of the given action except when the
10364
10364
* source {@code Observable} is reference counted, in which case the source {@code Observable} will invoke
10365
10365
* the given action for the very last un-subscription.
10366
+ * <p>
10367
+ * <img width="640" height="310" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnUnsubscribe.png" alt="">
10368
+ * <dl>
10369
+ * <dt><b>Scheduler:</b></dt>
10370
+ * <dd>{@code doOnUnsubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
10371
+ * </dl>
10366
10372
*
10367
- *
10368
- * @param unsubscribe The action that gets called when this {@code Observable} is unsubscribed.
10369
- *
10370
- * @return That modified {@code Observable}
10373
+ * @param unsubscribe the action that gets called when this {@code Observable} is unsubscribed
10374
+ * @return the source {@code Observable} modified so as to call this Action when appropriate
10375
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#doonunsubscribe">RxJava wiki: doOnUnsubscribe</a>
10371
10376
*/
10372
10377
public final Observable<T> doOnUnsubscribe(final Action0 unsubscribe) {
10373
10378
return lift(new OperatorDoOnUnsubscribe<T>(unsubscribe));
You can’t perform that action at this time.
0 commit comments