Skip to content

Commit fbba23e

Browse files
VeskoIakarnokd
authored andcommitted
Add marble diagrams to a few Single.doOnX methods. (#5987)
* Add marble diagrams to a few Single.doOnX methods. * Use correct marble diagram urls for couple of Single.doOnXX methods
1 parent d57af5a commit fbba23e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/java/io/reactivex/Single.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,6 +2244,9 @@ public final Single<T> doAfterTerminate(Action onAfterTerminate) {
22442244
* is executed once per subscription.
22452245
* <p>Note that the {@code onFinally} action is shared between subscriptions and as such
22462246
* should be thread-safe.
2247+
* <p>
2248+
* <img width="640" height="291" src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.doFinally.png" alt="">
2249+
* </p>
22472250
* <dl>
22482251
* <dt><b>Scheduler:</b></dt>
22492252
* <dd>{@code doFinally} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2263,6 +2266,9 @@ public final Single<T> doFinally(Action onFinally) {
22632266
/**
22642267
* Calls the shared consumer with the Disposable sent through the onSubscribe for each
22652268
* SingleObserver that subscribes to the current Single.
2269+
* <p>
2270+
* <img width="640" height="347" src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.doOnSubscribe.png" alt="">
2271+
* </p>
22662272
* <dl>
22672273
* <dt><b>Scheduler:</b></dt>
22682274
* <dd>{@code doOnSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2281,6 +2287,9 @@ public final Single<T> doOnSubscribe(final Consumer<? super Disposable> onSubscr
22812287
/**
22822288
* Calls the shared consumer with the success value sent via onSuccess for each
22832289
* SingleObserver that subscribes to the current Single.
2290+
* <p>
2291+
* <img width="640" height="347" src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.doOnSuccess.2.png" alt="">
2292+
* </p>
22842293
* <dl>
22852294
* <dt><b>Scheduler:</b></dt>
22862295
* <dd>{@code doOnSuccess} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2317,6 +2326,9 @@ public final Single<T> doOnEvent(final BiConsumer<? super T, ? super Throwable>
23172326
/**
23182327
* Calls the shared consumer with the error sent via onError for each
23192328
* SingleObserver that subscribes to the current Single.
2329+
* <p>
2330+
* <img width="640" height="349" src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.doOnError.2.png" alt="">
2331+
* </p>
23202332
* <dl>
23212333
* <dt><b>Scheduler:</b></dt>
23222334
* <dd>{@code doOnError} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2335,6 +2347,9 @@ public final Single<T> doOnError(final Consumer<? super Throwable> onError) {
23352347
/**
23362348
* Calls the shared {@code Action} if a SingleObserver subscribed to the current Single
23372349
* disposes the common Disposable it received via onSubscribe.
2350+
* <p>
2351+
* <img width="640" height="332" src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.doOnDispose.png" alt="">
2352+
* </p>
23382353
* <dl>
23392354
* <dt><b>Scheduler:</b></dt>
23402355
* <dd>{@code doOnDispose} does not operate by default on a particular {@link Scheduler}.</dd>

0 commit comments

Comments
 (0)