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