File tree 2 files changed +9
-1
lines changed
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala
rxjava-core/src/main/java/rx
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1013,7 +1013,11 @@ trait Observable[+T]
1013
1013
* This is useful when you want an Observable to cache responses and you can't control the
1014
1014
* subscribe/unsubscribe behavior of all the [[rx.lang.scala.Observer ]]s.
1015
1015
*
1016
- * NOTE: You sacrifice the ability to unsubscribe from the origin when you use the
1016
+ * When you call `cache`, it does not yet subscribe to the
1017
+ * source Observable. This only happens when `subscribe` is called
1018
+ * the first time on the Observable returned by `cache()`.
1019
+ *
1020
+ * Note: You sacrifice the ability to unsubscribe from the origin when you use the
1017
1021
* `cache()` operator so be careful not to use this operator on Observables that
1018
1022
* emit an infinite or very large number of items that will use up memory.
1019
1023
*
Original file line number Diff line number Diff line change @@ -4216,6 +4216,10 @@ public Observable<T> retry() {
4216
4216
* can't control the subscribe/unsubscribe behavior of all the
4217
4217
* {@link Observer}s.
4218
4218
* <p>
4219
+ * When you call {@code cache()}, it does not yet subscribe to the
4220
+ * source Observable. This only happens when {@code subscribe} is called
4221
+ * the first time on the Observable returned by {@code cache()}.
4222
+ * <p>
4219
4223
* Note: You sacrifice the ability to unsubscribe from the origin when you
4220
4224
* use the <code>cache()</code> operator so be careful not to use this
4221
4225
* operator on Observables that emit an infinite or very large number of
You can’t perform that action at this time.
0 commit comments