@@ -4809,11 +4809,18 @@ public final void onNext(T args) {
48094809 * its subscribers. Each subscription will result in an invocation of the given action except when the
48104810 * source {@code Observable} is reference counted, in which case the source {@code Observable} will invoke
48114811 * the given action for the first subscription.
4812+ * <p>
4813+ * <img width="640" height="390" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnSubscribe.png" alt="">
4814+ * <dl>
4815+ * <dt><b>Scheduler:</b></dt>
4816+ * <dd>{@code doOnSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
4817+ * </dl>
48124818 *
4813- *
4814- * @param unsubscribe The action that gets called when this {@code Observable} is subscribed.
4815- *
4816- * @return That modified {@code Observable}
4819+ * @param subscribe
4820+ * the action that gets called when an observer subscribes to this {@code Observable}
4821+ * @return the source {@code Observable} modified so as to call this Action when appropriate
4822+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#doonsubscribe">RxJava wiki: doOnSubscribe</a>
4823+ * @since 0.20
48174824 */
48184825 public final Observable<T> doOnSubscribe(final Action0 subscribe) {
48194826 return lift(new OperatorDoOnSubscribe<T>(subscribe));
@@ -4873,9 +4880,11 @@ public final void onNext(T args) {
48734880 * <dd>{@code doOnUnsubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
48744881 * </dl>
48754882 *
4876- * @param unsubscribe the action that gets called when this {@code Observable} is unsubscribed
4883+ * @param unsubscribe
4884+ * the action that gets called when this {@code Observable} is unsubscribed
48774885 * @return the source {@code Observable} modified so as to call this Action when appropriate
48784886 * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#doonunsubscribe">RxJava wiki: doOnUnsubscribe</a>
4887+ * @since 0.20
48794888 */
48804889 public final Observable<T> doOnUnsubscribe(final Action0 unsubscribe) {
48814890 return lift(new OperatorDoOnUnsubscribe<T>(unsubscribe));
0 commit comments