-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Value leaks its continuation #2426
Comments
Fixed in #2427. Will be released in the upcoming version. |
thank you @kjaklinovic for this report, I had exactly the same issue. |
@freak4pc This one has been fixed for quite some time now, but there has been no new release since then. What's the current timeline for the next release? |
Sorry about that, I'll try to take care of it over the weekend |
Awesome, thank you, Shai! |
@freak4pc 🥺 👉 👈 |
Sorry, I'm moving to a new apartment today and it's been quite hectic these past few weeks. I'll do my best to take care of it in the following days. Apologies for the delay., |
No worries! Life is more important than work :) Thanks for all the effort you put into this! |
@freak4pc ... any updates on release schedule? sorry to nag :) |
Short description of the issue:
Example code will produce a console output:
SWIFT TASK CONTINUATION MISUSE: value leaked its continuation!
Expected outcome:
I would expect no console output indicating issues with continuation.
What actually happens:
If you look at the example you will notice that the error triggers the dispose block in
doSomething1
and the task is canceled. If you look at the code for thevalue
computed property you can notice thatonCancel
will calldispose
function which will dispose the subscription that never got success or error event. Because of thatresume
was never called for thecontinuation
which results in the console output described above.Self contained code example that reproduces the issue:
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
Installation method:
I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)
The text was updated successfully, but these errors were encountered: