Skip to content

Commit 30905fc

Browse files
authored
2.x: add/update Observable marbles 11/28 (#5745)
1 parent d20b17e commit 30905fc

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/main/java/io/reactivex/Observable.java

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4827,6 +4827,8 @@ public final <R> R as(@NonNull ObservableConverter<T, ? extends R> converter) {
48274827
/**
48284828
* Returns the first item emitted by this {@code Observable}, or throws
48294829
* {@code NoSuchElementException} if it emits no items.
4830+
* <p>
4831+
* <img width="640" height="412" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators/blockingFirst.o.png" alt="">
48304832
* <dl>
48314833
* <dt><b>Scheduler:</b></dt>
48324834
* <dd>{@code blockingFirst} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -4852,6 +4854,8 @@ public final T blockingFirst() {
48524854
/**
48534855
* Returns the first item emitted by this {@code Observable}, or a default value if it emits no
48544856
* items.
4857+
* <p>
4858+
* <img width="640" height="329" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators/blockingFirst.o.default.png" alt="">
48554859
* <dl>
48564860
* <dt><b>Scheduler:</b></dt>
48574861
* <dd>{@code blockingFirst} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5124,7 +5128,7 @@ public final T blockingSingle(T defaultItem) {
51245128
* <p>
51255129
* If the {@code Observable} may emit more than one item, use {@code Observable.toList().toFuture()}.
51265130
* <p>
5127-
* <img width="640" height="395" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators/B.toFuture.png" alt="">
5131+
* <img width="640" height="389" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators/toFuture.o.png" alt="">
51285132
* <dl>
51295133
* <dt><b>Scheduler:</b></dt>
51305134
* <dd>{@code toFuture} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5141,6 +5145,8 @@ public final Future<T> toFuture() {
51415145

51425146
/**
51435147
* Runs the source observable to a terminal event, ignoring any values and rethrowing any exception.
5148+
* <p>
5149+
* <img width="640" height="270" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.0.png" alt="">
51445150
* <dl>
51455151
* <dt><b>Scheduler:</b></dt>
51465152
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5155,6 +5161,8 @@ public final void blockingSubscribe() {
51555161
/**
51565162
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
51575163
* <p>
5164+
* <img width="640" height="393" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.1.png" alt="">
5165+
* <p>
51585166
* If the Observable emits an error, it is wrapped into an
51595167
* {@link io.reactivex.exceptions.OnErrorNotImplementedException OnErrorNotImplementedException}
51605168
* and routed to the RxJavaPlugins.onError handler.
@@ -5172,6 +5180,8 @@ public final void blockingSubscribe(Consumer<? super T> onNext) {
51725180

51735181
/**
51745182
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5183+
* <p>
5184+
* <img width="640" height="396" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.2.png" alt="">
51755185
* <dl>
51765186
* <dt><b>Scheduler:</b></dt>
51775187
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5188,6 +5198,8 @@ public final void blockingSubscribe(Consumer<? super T> onNext, Consumer<? super
51885198

51895199
/**
51905200
* Subscribes to the source and calls the given callbacks <strong>on the current thread</strong>.
5201+
* <p>
5202+
* <img width="640" height="394" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/blockingSubscribe.o.png" alt="">
51915203
* <dl>
51925204
* <dt><b>Scheduler:</b></dt>
51935205
* <dd>{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5991,7 +6003,7 @@ public final <U> Single<U> collect(Callable<? extends U> initialValueSupplier, B
59916003
* Collects items emitted by the source ObservableSource into a single mutable data structure and returns
59926004
* a Single that emits this structure.
59936005
* <p>
5994-
* <img width="640" height="330" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/collect.2.png" alt="">
6006+
* <img width="640" height="330" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/collectInto.o.png" alt="">
59956007
* <p>
59966008
* This is a simplified version of {@code reduce} that does not need to return the state on each pass.
59976009
* <dl>
@@ -7053,7 +7065,7 @@ public final Observable<T> doFinally(Action onFinally) {
70537065
* If the action throws a runtime exception, that exception is rethrown by the {@code dispose()} call,
70547066
* sometimes as a {@code CompositeException} if there were multiple exceptions along the way.
70557067
* <p>
7056-
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnUnsubscribe.png" alt="">
7068+
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnDispose.png" alt="">
70577069
* <dl>
70587070
* <dt><b>Scheduler:</b></dt>
70597071
* <dd>{@code doOnDispose} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -7074,7 +7086,7 @@ public final Observable<T> doOnDispose(Action onDispose) {
70747086
/**
70757087
* Modifies the source ObservableSource so that it invokes an action when it calls {@code onComplete}.
70767088
* <p>
7077-
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnComplete.png" alt="">
7089+
* <img width="640" height="358" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnComplete.o.png" alt="">
70787090
* <dl>
70797091
* <dt><b>Scheduler:</b></dt>
70807092
* <dd>{@code doOnComplete} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -7177,7 +7189,7 @@ public final Observable<T> doOnEach(final Observer<? super T> observer) {
71777189
* In case the {@code onError} action throws, the downstream will receive a composite exception containing
71787190
* the original exception and the exception thrown by {@code onError}.
71797191
* <p>
7180-
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnError.png" alt="">
7192+
* <img width="640" height="355" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnError.o.png" alt="">
71817193
* <dl>
71827194
* <dt><b>Scheduler:</b></dt>
71837195
* <dd>{@code doOnError} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -7198,7 +7210,7 @@ public final Observable<T> doOnError(Consumer<? super Throwable> onError) {
71987210
* Calls the appropriate onXXX method (shared between all Observer) for the lifecycle events of
71997211
* the sequence (subscription, cancellation, requesting).
72007212
* <p>
7201-
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnLifecycle.png" alt="">
7213+
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnLifecycle.o.png" alt="">
72027214
* <dl>
72037215
* <dt><b>Scheduler:</b></dt>
72047216
* <dd>{@code doOnLifecycle} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -7222,7 +7234,7 @@ public final Observable<T> doOnLifecycle(final Consumer<? super Disposable> onSu
72227234
/**
72237235
* Modifies the source ObservableSource so that it invokes an action when it calls {@code onNext}.
72247236
* <p>
7225-
* <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnNext.png" alt="">
7237+
* <img width="640" height="360" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/doOnNext.o.png" alt="">
72267238
* <dl>
72277239
* <dt><b>Scheduler:</b></dt>
72287240
* <dd>{@code doOnNext} does not operate by default on a particular {@link Scheduler}.</dd>

0 commit comments

Comments
 (0)