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

Provide Environment in ChannelExecutor BracketOut #6250

Merged
merged 1 commit into from Jan 15, 2022

Conversation

adamgfraser
Copy link
Contributor

We currently do not provide the environment to the acquire and release effects in the interpretation of BracketOut in the ChannelExecutor, deferring the provision of the environment to the ZIO effect resulting from running the channel. However, this is not sound because the managedOut channel may rely on a different scoped environment than the entire channel. Instead we must provide both of these effects with the current environment.

@vigoo vigoo merged commit 5a6178e into zio:series/2.x Jan 15, 2022
@adamgfraser adamgfraser deleted the provide branch January 17, 2022 22:31
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.

None yet

2 participants