Skip to content
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

Guarantee Concast cleanup without Observable cancelled prematurely rejection #9701

Merged
merged 4 commits into from
May 9, 2022

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented May 9, 2022

Thanks to @andreialecu's investigations in #9690, I believe we may be close to solving issue #7608 once and for all! 🥳

I can say this with confidence because this PR completely removes the pesky Observable cancelled prematurely error from the Concast implementation, so it should never again reject concast.promise.

Instead of terminating remaining cleanup observers using this.handlers.error(...), I'm now using this.handlers.complete() (which required fixing another bug that prevented unsubscribing after complete).

benjamn added a commit that referenced this pull request May 9, 2022
benjamn added 4 commits May 9, 2022 17:46
The Concast class is heavily exercised by much of our test suite, so I
would not say it is currently untested, but I would love to expand on
these Concast-specific unit tests in the future.
@benjamn benjamn force-pushed the issue-9690-guarantee-concast-cleanup branch from 732e3aa to ad31810 Compare May 9, 2022 21:49
@benjamn benjamn linked an issue May 9, 2022 that may be closed by this pull request
Copy link
Contributor

@brainkim brainkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am approving so I don’t block the release but I promise to take a closer look at this later!

@benjamn benjamn merged commit 9bcda65 into main May 9, 2022
@benjamn benjamn deleted the issue-9690-guarantee-concast-cleanup branch May 9, 2022 22:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error Observable cancelled prematurely get's thrown
3 participants