-
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
Observable interval scheduling on Schedulers.trampoline cause a infinite loop #5365
Comments
It is the effect of sleeping-blocking nature of the trampoline scheduler that when it enters a synchronous periodic loop, the parent stream simply won't get the control to cancel that loop. The second set of cases work because using |
The tampoline works when I use |
API changes and scheduler use has changed that exposes this issue.
That is I've posted a fix for this type of cases in #5367. |
Is there some replaceable way to do the same thing now?
|
You don't try to stop that setup, plus the sleep is so small I guess the whole thing completes pretty quickly anyway. Closing via #5367. |
This code cause a infinite loop when snippt-1 interval complete.
This code will be fine
Is something wrong with me?
The text was updated successfully, but these errors were encountered: