We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d172fd9 commit 2672b74Copy full SHA for 2672b74
rxjava-core/src/main/java/rx/operators/OperationTake.java
@@ -147,6 +147,7 @@ public void onNext(T args) {
147
if (predicate.call(args, counter.getAndIncrement())) {
148
observer.onNext(args);
149
} else {
150
+ observer.onCompleted();
151
// this will work if the sequence is asynchronous, it will have no effect on a synchronous observable
152
subscription.unsubscribe();
153
}
0 commit comments