-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program using interval and take does not terminate #388
Comments
Just replicated it ... taking a look to see if I can find the cause. |
The Schedulers.executor(Executors.newSingleThreadScheduledExecutor()) Changing that, the demo code now doesn't even run as the app quits immediately as it's all async (as it should). I revised the example to use public static void main(String[] args) {
Observable<Long> oneNumberPerSecond = Observable.interval(1, TimeUnit.SECONDS).take(5);
oneNumberPerSecond.toBlockingObservable().forEach(onNextFunc("subscriber 1"));
} I'll submit a fix shortly. |
Thanks, now it behaves as I'd expect, but the example I'd like to get to work still doesn't because of problems with groupBy #289 (comment) ... |
ReactiveX#388) * refactor circuit breaker aspect to remove API type and add completable future support * Add Rxjava 2 support to Sprung aspect of circuit breaker * fix the gradle build * tmp fix the gradle build dependency issue * make the circuit breaker aspect smart ! :) to know which logic need to be done based into the runtime situation * code cleanup and adding needed java doc * review comments * make it public for the extension aspects * review comments and spring config generalization * review comments * execption handling properly for the circuit breaker aspects * javadoc update
When I run the following snippet:
then I get (as expected) the following output:
However, the program does not terminate, and that's unexpected.
I ran this test using
rxjava-core-0.13.2-SNAPSHOT.jar
built from commit 00d7c3b (Sat Sep 14 08:37:09 2013 -0700).Due to this problem, some tests in the
RxScalaDemo
that I'm working on do not terminate, which is annoying.The text was updated successfully, but these errors were encountered: