@@ -1279,6 +1279,8 @@ public static <T> Single<T> wrap(SingleSource<T> source) {
1279
1279
* value and calls a zipper function with an array of these values to return a result
1280
1280
* to be emitted to downstream.
1281
1281
* <p>
1282
+ * If the {@code Iterable} of {@link SingleSource}s is empty a {@link NoSuchElementException} error is signalled after subscription.
1283
+ * <p>
1282
1284
* Note on method signature: since Java doesn't allow creating a generic array with {@code new T[]}, the
1283
1285
* implementation of this operator has to create an {@code Object[]} instead. Unfortunately, a
1284
1286
* {@code Function<Integer[], R>} passed to the method would trigger a {@code ClassCastException}.
@@ -1294,7 +1296,8 @@ public static <T> Single<T> wrap(SingleSource<T> source) {
1294
1296
* </dl>
1295
1297
* @param <T> the common value type
1296
1298
* @param <R> the result value type
1297
- * @param sources the Iterable sequence of SingleSource instances
1299
+ * @param sources the Iterable sequence of SingleSource instances. An empty sequence will result in an
1300
+ * {@code onError} signal of {@link NoSuchElementException}.
1298
1301
* @param zipper the function that receives an array with values from each SingleSource
1299
1302
* and should return a value to be emitted to downstream
1300
1303
* @return the new Single instance
@@ -1721,6 +1724,8 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Single<R> zip(
1721
1724
* value and calls a zipper function with an array of these values to return a result
1722
1725
* to be emitted to downstream.
1723
1726
* <p>
1727
+ * If the array of {@link SingleSource}s is empty a {@link NoSuchElementException} error is signalled immediately.
1728
+ * <p>
1724
1729
* Note on method signature: since Java doesn't allow creating a generic array with {@code new T[]}, the
1725
1730
* implementation of this operator has to create an {@code Object[]} instead. Unfortunately, a
1726
1731
* {@code Function<Integer[], R>} passed to the method would trigger a {@code ClassCastException}.
@@ -1736,7 +1741,8 @@ public static <T1, T2, T3, T4, T5, T6, T7, T8, T9, R> Single<R> zip(
1736
1741
* </dl>
1737
1742
* @param <T> the common value type
1738
1743
* @param <R> the result value type
1739
- * @param sources the array of SingleSource instances
1744
+ * @param sources the array of SingleSource instances. An empty sequence will result in an
1745
+ * {@code onError} signal of {@link NoSuchElementException}.
1740
1746
* @param zipper the function that receives an array with values from each SingleSource
1741
1747
* and should return a value to be emitted to downstream
1742
1748
* @return the new Single instance
0 commit comments