-
Notifications
You must be signed in to change notification settings - Fork 3k
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
interval with large period keeps emitting #4495
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Current Behavior
Passing a large
period
tointerval(period: number, scheduler: Scheduler): Observable
results in continuous emissions instead of 1 after givenperiod
passed.Reproduction
Sadly I can't provide a StackBlitz due to corporate firewall issues, but I managed to reproduce the problem here using rxjs-playground.github.io.
I'm posting the same code here:
Expected behavior
The
Observable
should not emit until givenperiod
has passed.Environment
Additional info
I know that the such a large period is very awkward. I'm getting such a large value from a backend system telling me that the time-window for a given operation expires at some point in the future.
As a workaround I can pass to interval
min(backendValue, largestPeriodNotExposingThisBug)
, but I believe it is right to inform you about this to prevent more problematic issues.The text was updated successfully, but these errors were encountered: