@@ -5573,7 +5573,7 @@ public final T blockingSingle(T defaultItem) {
5573
5573
* {@link java.lang.IllegalArgumentException}. If the {@link Flowable} is empty, {@link java.util.concurrent.Future}
5574
5574
* will receive an {@link java.util.NoSuchElementException}.
5575
5575
* <p>
5576
- * If the {@code Flowable} may emit more than one item, use {@code Flowable.toList().toBlocking(). toFuture()}.
5576
+ * If the {@code Flowable} may emit more than one item, use {@code Flowable.toList().toFuture()}.
5577
5577
* <p>
5578
5578
* <img width="640" height="395" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators/B.toFuture.png" alt="">
5579
5579
* <dl>
@@ -13056,7 +13056,7 @@ public final <E extends Subscriber<? super T>> E subscribeWith(E subscriber) {
13056
13056
* <p>
13057
13057
* If there is a {@link #create(FlowableOnSubscribe, BackpressureStrategy)} type source up in the
13058
13058
* chain, it is recommended to use {@code subscribeOn(scheduler, false)} instead
13059
- * to avoid same-pool deadlock because requests may pile up behind a eager/blocking emitter.
13059
+ * to avoid same-pool deadlock because requests may pile up behind an eager/blocking emitter.
13060
13060
* <p>
13061
13061
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/subscribeOn.png" alt="">
13062
13062
* <dl>
@@ -13090,7 +13090,7 @@ public final Flowable<T> subscribeOn(@NonNull Scheduler scheduler) {
13090
13090
* <p>
13091
13091
* If there is a {@link #create(FlowableOnSubscribe, BackpressureStrategy)} type source up in the
13092
13092
* chain, it is recommended to have {@code requestOn} false to avoid same-pool deadlock
13093
- * because requests may pile up behind a eager/blocking emitter.
13093
+ * because requests may pile up behind an eager/blocking emitter.
13094
13094
* <p>
13095
13095
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/subscribeOn.png" alt="">
13096
13096
* <dl>
@@ -14574,8 +14574,8 @@ public final <R> R to(Function<? super Flowable<T>, R> converter) {
14574
14574
}
14575
14575
14576
14576
/**
14577
- * Returns a Single that emits a single item, a list composed of all the items emitted by the source
14578
- * Publisher.
14577
+ * Returns a Single that emits a single item, a list composed of all the items emitted by the
14578
+ * finite upstream source Publisher.
14579
14579
* <p>
14580
14580
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toList.png" alt="">
14581
14581
* <p>
@@ -14585,8 +14585,9 @@ public final <R> R to(Function<? super Flowable<T>, R> converter) {
14585
14585
* function once, passing it the entire list, by calling the Publisher's {@code toList} method prior to
14586
14586
* calling its {@link #subscribe} method.
14587
14587
* <p>
14588
- * Be careful not to use this operator on Publishers that emit infinite or very large numbers of items, as
14589
- * you do not have the option to cancel.
14588
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulated list to
14589
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
14590
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
14590
14591
* <dl>
14591
14592
* <dt><b>Backpressure:</b></dt>
14592
14593
* <dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an
@@ -14607,8 +14608,8 @@ public final Single<List<T>> toList() {
14607
14608
}
14608
14609
14609
14610
/**
14610
- * Returns a Single that emits a single item, a list composed of all the items emitted by the source
14611
- * Publisher.
14611
+ * Returns a Single that emits a single item, a list composed of all the items emitted by the
14612
+ * finite source Publisher.
14612
14613
* <p>
14613
14614
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toList.png" alt="">
14614
14615
* <p>
@@ -14618,8 +14619,9 @@ public final Single<List<T>> toList() {
14618
14619
* function once, passing it the entire list, by calling the Publisher's {@code toList} method prior to
14619
14620
* calling its {@link #subscribe} method.
14620
14621
* <p>
14621
- * Be careful not to use this operator on Publishers that emit infinite or very large numbers of items, as
14622
- * you do not have the option to cancel.
14622
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulated list to
14623
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
14624
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
14623
14625
* <dl>
14624
14626
* <dt><b>Backpressure:</b></dt>
14625
14627
* <dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an
@@ -14643,8 +14645,8 @@ public final Single<List<T>> toList(final int capacityHint) {
14643
14645
}
14644
14646
14645
14647
/**
14646
- * Returns a Single that emits a single item, a list composed of all the items emitted by the source
14647
- * Publisher.
14648
+ * Returns a Single that emits a single item, a list composed of all the items emitted by the
14649
+ * finite source Publisher.
14648
14650
* <p>
14649
14651
* <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/toList.png" alt="">
14650
14652
* <p>
@@ -14654,8 +14656,9 @@ public final Single<List<T>> toList(final int capacityHint) {
14654
14656
* function once, passing it the entire list, by calling the Publisher's {@code toList} method prior to
14655
14657
* calling its {@link #subscribe} method.
14656
14658
* <p>
14657
- * Be careful not to use this operator on Publishers that emit infinite or very large numbers of items, as
14658
- * you do not have the option to cancel.
14659
+ * Note that this operator requires the upstream to signal {@code onComplete} for the accumulated collection to
14660
+ * be emitted. Sources that are infinite and never complete will never emit anything through this
14661
+ * operator and an infinite source may lead to a fatal {@code OutOfMemoryError}.
14659
14662
* <dl>
14660
14663
* <dt><b>Backpressure:</b></dt>
14661
14664
* <dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an
0 commit comments