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
fixed observable's disposing #33
Conversation
Code looks good, thanks for adding tests, too. Looks like the new test is failing, could you take a look when you have a moment? Happy to screenhero to tackle it together. A changelog entry would be great too, thanks again! |
Is there way you can explicitly cancel an action? |
If the action is deallocated, it should dispose of its subscriptions. Once external objects have also dispose of their subscriptions, the action's observable (the one you create) should be disposed of. You can put cancellation code in the disposable you create with the observable. |
…ile the project" This reverts commit 23374df.
…se tests do not pass
The problem is that I use RxSwift 2.5 and travis has tested with RxSwift 2.1 So as far as I see it now the problem is not in Action, but rather in RxSwift. |
Ah, we'll need to change the |
Looks like it's ok now. I didn't add a Changelog entry though. I guess it would be better if a native speaker did that, i'm not so confident in my English :) |
Fab! I can take care of that, thanks again! |
Thanks a lot for contributing! I've invited you to join the RxSwiftCommunity GitHub organization – no pressure to accept! If you'd like more information on what that means, check out our contributor guidelines and feel free to reach out with any questions. |
When button is deallocated, observable is not disposed.
So for example, if an application downloads some data from the internet and the user decides to cancel, download wont be stopped after uiviewcontroller is dismissed.