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) {
1036310363 * its subscribers. Each un-subscription will result in an invocation of the given action except when the
1036410364 * source {@code Observable} is reference counted, in which case the source {@code Observable} will invoke
1036510365 * 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>
1036610372 *
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>
1037110376 */
1037210377 public final Observable<T> doOnUnsubscribe(final Action0 unsubscribe) {
1037310378 return lift(new OperatorDoOnUnsubscribe<T>(unsubscribe));
You can’t perform that action at this time.
0 commit comments