-
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
fix: chain subscriptions for interop with finalize #5239
Conversation
@benlesh I had a quick look at this and the issue with putting this functionality into |
Closed by #5333 |
Nope, #5333 doesn't close this. Rather, this PR needs to be refactored to use |
Description:
The change in this PR is very similar to the changes that were made in #5059: when an interop subscriber is created within
finalize
, it'll be wrapped when a subscription is made to the source observable inFinallyOperator#call
. The interop subscriber needs to be added to the subscription so that unsubscription chains property and the finalize callback is invoked.The adding of the interop subscription is now handled in
subscribeWith
- which was added in #5333.This PR also includes a failing test that is fixed by the above change.
Related issue (if exists): #5237