@@ -5577,14 +5577,17 @@ public final void forEach(final Action1<? super T> onNext, final Action1<Throwab
5577
5577
5578
5578
/**
5579
5579
* Groups the items emitted by an {@code Observable} according to a specified criterion, and emits these
5580
- * grouped items as {@link GroupedObservable}s, one {@code GroupedObservable} per group.
5580
+ * grouped items as {@link GroupedObservable}s. The emitted {@code GroupedObservable} allows only a single
5581
+ * {@link Subscriber} during its lifetime and if this {@code Subscriber} unsubscribes before the
5582
+ * source terminates, the next emission by the source having the same key will trigger a new
5583
+ * {@code GroupedObservable} emission.
5581
5584
* <p>
5582
5585
* <img width="640" height="360" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/groupBy.png" alt="">
5583
5586
* <p>
5584
5587
* <em>Note:</em> A {@link GroupedObservable} will cache the items it is to emit until such time as it
5585
5588
* is subscribed to. For this reason, in order to avoid memory leaks, you should not simply ignore those
5586
5589
* {@code GroupedObservable}s that do not concern you. Instead, you can signal to them that they may
5587
- * discard their buffers by applying an operator like {@link #take}{@code (0) } to them.
5590
+ * discard their buffers by applying an operator like {@link #ignoreElements } to them.
5588
5591
* <dl>
5589
5592
* <dt><b>Scheduler:</b></dt>
5590
5593
* <dd>{@code groupBy} does not operate by default on a particular {@link Scheduler}.</dd>
@@ -5609,14 +5612,17 @@ public final <K, R> Observable<GroupedObservable<K, R>> groupBy(final Func1<? su
5609
5612
5610
5613
/**
5611
5614
* Groups the items emitted by an {@code Observable} according to a specified criterion, and emits these
5612
- * grouped items as {@link GroupedObservable}s, one {@code GroupedObservable} per group.
5615
+ * grouped items as {@link GroupedObservable}s. The emitted {@code GroupedObservable} allows only a single
5616
+ * {@link Subscriber} during its lifetime and if this {@code Subscriber} unsubscribes before the
5617
+ * source terminates, the next emission by the source having the same key will trigger a new
5618
+ * {@code GroupedObservable} emission.
5613
5619
* <p>
5614
5620
* <img width="640" height="360" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/groupBy.png" alt="">
5615
5621
* <p>
5616
5622
* <em>Note:</em> A {@link GroupedObservable} will cache the items it is to emit until such time as it
5617
5623
* is subscribed to. For this reason, in order to avoid memory leaks, you should not simply ignore those
5618
5624
* {@code GroupedObservable}s that do not concern you. Instead, you can signal to them that they may
5619
- * discard their buffers by applying an operator like {@link #take}{@code (0) } to them.
5625
+ * discard their buffers by applying an operator like {@link #ignoreElements } to them.
5620
5626
* <dl>
5621
5627
* <dt><b>Scheduler:</b></dt>
5622
5628
* <dd>{@code groupBy} does not operate by default on a particular {@link Scheduler}.</dd>
0 commit comments