8000 Fix race condition for errors in `ZChannel.mapOutZIOPar*` methods by kyri-petrou · Pull Request #9354 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix race condition for errors in ZChannel.mapOutZIOPar* methods #9354

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

Conversation

kyri-petrou
Copy link
Contributor

There is a rare race condition where the error in ZChannel.mapOutZIOPar* methods is not propagated due to a Done signal winning the race against the errorSignal. This PR fixes it by checking that the errors in the failure Ref are empty prior to succeeding the ZChannel

< 8FFB div class="AvatarStack flex-self-start " >
@kyri-petrou kyri-petrou merged commit f47002d into zio:series/2.x Dec 8, 2024
18 checks passed
@kyri-petrou kyri-petrou deleted the fix-race-condition-par-zchannel-error branch December 8, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0