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 ff72c07 commit 81c3b83Copy full SHA for 81c3b83
src/main/java/concurrency/reactive/IntervalEx.java
@@ -63,7 +63,7 @@ public void onSubscribe(Subscription s) {
63
@Override
64
public void onNext(Integer integer) {
65
if (count++ >= n) subscription.cancel();
66
- subscriber.onNext(integer);
+ else subscriber.onNext(integer);
67
}
68
69
0 commit comments