rebatchRequests(int n) {
/**
* Returns a Maybe that applies a specified accumulator function to the first item emitted by a source
* Publisher, then feeds the result of that function along with the second item emitted by the source
- * Publisher into the same function, and so on until all items have been emitted by the source Publisher,
+ * Publisher into the same function, and so on until all items have been emitted by the finite source Publisher,
* and emits the final result from the final call to your function as its sole item.
*
* If the source is empty, a {@code NoSuchElementException} is signalled.
@@ -11075,6 +11083,10 @@ public final Flowable rebatchRequests(int n) {
* This technique, which is called "reduce" here, is sometimes called "aggregate," "fold," "accumulate,"
* "compress," or "inject" in other programming contexts. Groovy, for instance, has an {@code inject} method
* that does a similar operation on lists.
+ *
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulator object to
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
*
* - Backpressure:
* - The operator honors backpressure of its downstream consumer and consumes the
@@ -11103,7 +11115,7 @@ public final Maybe reduce(BiFunction reducer) {
* Returns a Single that applies a specified accumulator function to the first item emitted by a source
* Publisher and a specified seed value, then feeds the result of that function along with the second item
* emitted by a Publisher into the same function, and so on until all items have been emitted by the
- * source Publisher, emitting the final result from the final call to your function as its sole item.
+ * finite source Publisher, emitting the final result from the final call to your function as its sole item.
*
*
*
@@ -11128,6 +11140,10 @@ public final Maybe reduce(BiFunction reducer) {
*
* source.reduceWith(() -> new ArrayList<>(), (list, item) -> list.add(item)));
*
+ *
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulator object to
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
*
* - Backpressure:
* - The operator honors backpressure of its downstream consumer and consumes the
@@ -11161,7 +11177,7 @@ public final Single reduce(R seed, BiFunction reducer) {
* Returns a Single that applies a specified accumulator function to the first item emitted by a source
* Publisher and a seed value derived from calling a specified seedSupplier, then feeds the result
* of that function along with the second item emitted by a Publisher into the same function, and so on until
- * all items have been emitted by the source Publisher, emitting the final result from the final call to your
+ * all items have been emitted by the finite source Publisher, emitting the final result from the final call to your
* function as its sole item.
*
*
@@ -11169,6 +11185,10 @@ public final Single reduce(R seed, BiFunction reducer) {
* This technique, which is called "reduce" here, is sometimes called "aggregate," "fold," "accumulate,"
* "compress," or "inject" in other programming contexts. Groovy, for instance, has an {@code inject} method
* that does a similar operation on lists.
+ *
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulator object to
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
*
* - Backpressure:
* - The operator honors backpressure of its downstream consumer and consumes the
@@ -15092,12 +15112,16 @@ public final > Single toList(Callable coll
}
/**
- * Returns a Single that emits a single HashMap containing all items emitted by the source Publisher,
+ * Returns a Single that emits a single HashMap containing all items emitted by the finite source Publisher,
* mapped by the keys returned by a specified {@code keySelector} function.
*
*
*
* If more than one source item maps to the same key, the HashMap will contain the latest of those items.
+ *
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulated map to
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
*
* - Backpressure:
* - The operator honors backpressure from downstream and consumes the source {@code Publisher} in an
@@ -15123,12 +15147,16 @@ public final Single