Skip to content

Commit a92a357

Browse files
authored
3.x: Update Single.zip marble diagrams (4 cases) (#6732)
1 parent e65cd8d commit a92a357

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ public static <T> Single<T> wrap(SingleSource<T> source) {
15531553
* {@code Function<Integer[], R>} passed to the method would trigger a {@code ClassCastException}.
15541554
*
15551555
* <p>
1556-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/zip.png" alt="">
1556+
* <img width="640" height="340" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.i.png" alt="">
15571557
* <p>
15581558
* If any of the SingleSources signal an error, all other SingleSources get disposed and the
15591559
* error emitted to downstream immediately.
@@ -1583,7 +1583,7 @@ public static <T, R> Single<R> zip(final Iterable<? extends SingleSource<? exten
15831583
* Returns a Single that emits the results of a specified combiner function applied to two items emitted by
15841584
* two other Singles.
15851585
* <p>
1586-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1586+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
15871587
* <dl>
15881588
* <dt><b>Scheduler:</b></dt>
15891589
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1619,7 +1619,7 @@ public static <T1, T2, R> Single<R> zip(
16191619
* Returns a Single that emits the results of a specified combiner function applied to three items emitted
16201620
* by three other Singles.
16211621
* <p>
1622-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1622+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
16231623
* <dl>
16241624
* <dt><b>Scheduler:</b></dt>
16251625
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1660,7 +1660,7 @@ public static <T1, T2, T3, R> Single<R> zip(
16601660
* Returns a Single that emits the results of a specified combiner function applied to four items
16611661
* emitted by four other Singles.
16621662
* <p>
1663-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1663+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
16641664
* <dl>
16651665
* <dt><b>Scheduler:</b></dt>
16661666
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1705,7 +1705,7 @@ public static <T1, T2, T3, T4, R> Single<R> zip(
17051705
* Returns a Single that emits the results of a specified combiner function applied to five items
17061706
* emitted by five other Singles.
17071707
* <p>
1708-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1708+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
17091709
* <dl>
17101710
* <dt><b>Scheduler:</b></dt>
17111711
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1755,7 +1755,7 @@ public static <T1, T2, T3, T4, T5, R> Single<R> zip(
17551755
* Returns a Single that emits the results of a specified combiner function applied to six items
17561756
* emitted by six other Singles.
17571757
* <p>
1758-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1758+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
17591759
* <dl>
17601760
* <dt><b>Scheduler:</b></dt>
17611761
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1809,7 +1809,7 @@ public static <T1, T2, T3, T4, T5, T6, R> Single<R> zip(
18091809
* Returns a Single that emits the results of a specified combiner function applied to seven items
18101810
* emitted by seven other Singles.
18111811
* <p>
1812-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1812+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
18131813
* <dl>
18141814
* <dt><b>Scheduler:</b></dt>
18151815
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1868,7 +1868,7 @@ public static <T1, T2, T3, T4, T5, T6, T7, R> Single<R> zip(
18681868
* Returns a Single that emits the results of a specified combiner function applied to eight items
18691869
* emitted by eight other Singles.
18701870
* <p>
1871-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1871+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
18721872
* <dl>
18731873
* <dt><b>Scheduler:</b></dt>
18741874
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -1931,7 +1931,7 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, R> Single<R> zip(
19311931
* Returns a Single that emits the results of a specified combiner function applied to nine items
19321932
* emitted by nine other Singles.
19331933
* <p>
1934-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
1934+
* <img width="640" height="414" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.n.png" alt="">
19351935
* <dl>
19361936
* <dt><b>Scheduler:</b></dt>
19371937
* <dd>{@code zip} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -2000,14 +2000,13 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Single<R> zip(
20002000
* value and calls a zipper function with an array of these values to return a result
20012001
* to be emitted to downstream.
20022002
* <p>
2003+
* <img width="640" height="340" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zipArray.png" alt="">
2004+
* <p>
20032005
* If the array of {@link SingleSource}s is empty a {@link NoSuchElementException} error is signalled immediately.
20042006
* <p>
20052007
* Note on method signature: since Java doesn't allow creating a generic array with {@code new T[]}, the
20062008
* implementation of this operator has to create an {@code Object[]} instead. Unfortunately, a
20072009
* {@code Function<Integer[], R>} passed to the method would trigger a {@code ClassCastException}.
2008-
*
2009-
* <p>
2010-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/zip.png" alt="">
20112010
* <p>
20122011
* If any of the SingleSources signal an error, all other SingleSources get disposed and the
20132012
* error emitted to downstream immediately.
@@ -4104,7 +4103,7 @@ public final Single<T> unsubscribeOn(final Scheduler scheduler) {
41044103
* Returns a Single that emits the result of applying a specified function to the pair of items emitted by
41054104
* the source Single and another specified Single.
41064105
* <p>
4107-
* <img width="640" height="380" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zip.png" alt="">
4106+
* <img width="640" height="422" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.zipWith.png" alt="">
41084107
* <dl>
41094108
* <dt><b>Scheduler:</b></dt>
41104109
* <dd>{@code zipWith} does not operate by default on a particular {@link Scheduler}.</dd>

0 commit comments

Comments
 (0)