@@ -4809,11 +4809,18 @@ public final void onNext(T args) {
4809
4809
* its subscribers. Each subscription will result in an invocation of the given action except when the
4810
4810
* source {@code Observable} is reference counted, in which case the source {@code Observable} will invoke
4811
4811
* 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>
4812
4818
*
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
4817
4824
*/
4818
4825
public final Observable<T> doOnSubscribe(final Action0 subscribe) {
4819
4826
return lift(new OperatorDoOnSubscribe<T>(subscribe));
@@ -4873,9 +4880,11 @@ public final void onNext(T args) {
4873
4880
* <dd>{@code doOnUnsubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
4874
4881
* </dl>
4875
4882
*
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
4877
4885
* @return the source {@code Observable} modified so as to call this Action when appropriate
4878
4886
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#doonunsubscribe">RxJava wiki: doOnUnsubscribe</a>
4887
+ * @since 0.20
4879
4888
*/
4880
4889
public final Observable<T> doOnUnsubscribe(final Action0 unsubscribe) {
4881
4890
return lift(new OperatorDoOnUnsubscribe<T>(unsubscribe));
0 commit comments