Prevent deadlock when publisher is canceled#3505
Open
dimitriho wants to merge 3 commits intotypelevel:mainfrom
Open
Prevent deadlock when publisher is canceled#3505dimitriho wants to merge 3 commits intotypelevel:mainfrom
dimitriho wants to merge 3 commits intotypelevel:mainfrom
Conversation
BalmungSan
approved these changes
Nov 28, 2024
mpilquist
reviewed
Nov 29, 2024
|
|
||
| def publish: Pipe[F, A, Nothing] = { in => | ||
| (in ++ Stream.exec(close.void)) | ||
| in.onFinalize(close.void) |
Author
There was a problem hiding this comment.
I made the change, it should also fix #3485. But as @ValdemarGr pointed out, the exit case might not be correct.
Author
There was a problem hiding this comment.
Here is an attempt to handle cancelation and error in Channel: e1d7b09. What do you think?
Author
There was a problem hiding this comment.
I added this commit. Regarding Topic, I don't know how to implement the same behavior without exposing raiseError and canceled to Channel.
Author
There was a problem hiding this comment.
I ended up adding raiseError and cancel to Channel, but now I'm facing mima issues. Is it acceptable to add new methods?
BalmungSan
approved these changes
Dec 1, 2024
59d9068 to
a46f858
Compare
a46f858 to
09f86e3
Compare
78178fc to
d14da63
Compare
d14da63 to
cf8799f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also fixes #3502