Skip to content

Commit 7084cd0

Browse files
Comment on Parallel
- the previously performed observeOn changes appear to have resolved the non-determinism
1 parent 1cac6fc commit 7084cd0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rxjava-core/src/main/java/rx/operators/OperatorParallel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public Integer call(T t) {
5656

5757
@Override
5858
public Observable<R> call(GroupedObservable<Integer, T> g) {
59+
// Must use observeOn not subscribeOn because we have a single source behind groupBy.
60+
// The origin is already subscribed to, we are moving each group on to a new thread
61+
// but the origin itself can only be on a single thread.
5962
return f.call(g.observeOn(scheduler));
6063
}
6164
});

0 commit comments

Comments
 (0)