-
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
Delay operator will leak memory #3604
Comments
I'm not sure this is a problem with delay so much as it might be a problem with repeatWhen. The recursive nature of what you're doing here is suspect. |
Where is the recursion? I running asynchronous action and resubscribing it with delay. In synchronous code it would be something like
The code above when replaced with timer(1)
.pipe(
repeatWhen(notifications => notifications.pipe(mergeMapTo(timer(d))))
)
.subscribe(); is not leaking. |
Fixed in #3605 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RxJS version: 5 and 6
Code to reproduce:
5
6
Expected behavior:
Memory shouldn't grow
Actual behavior:
Memory grows indefinitely
Additional information:
Have fix and will provide PR
The text was updated successfully, but these errors were encountered: