Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Currently it can be somewhat awkward to handle managed blocking effects because the blocking operator expects a ZIO rather than a Managed. This PR implements a blocking constructor on ZManaged that returns a managed effect that shifts to the blocking executor as its acquire action and shifts back to the previous locked executor as its release action. This can be used to ensure that a managed effect or other dynamic scope is run on the blocking executor.

@adamgfraser adamgfraser requested a review from jdegoes March 16, 2021 23:51
@jdegoes jdegoes merged commit 4c9dbdf into zio:master Mar 17, 2021
@adamgfraser adamgfraser deleted the blocking branch March 17, 2021 04:46
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.

2 participants