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

Fix propagation of interruption from CIO to ZIO #697

Merged
merged 6 commits into from
Jul 27, 2024

Conversation

kyri-petrou
Copy link
Contributor

@kyri-petrou kyri-petrou commented Jul 26, 2024

/claim #695
/fixes #695

Reopening #696 since the bounty claim wasn't working

Note that I also changed the code to use runOrFork instead of fork within toEffect. This is to avoid the overhead of forking fibers when the ZIO effect can be evaluated synchronously. Users that convert simple ZIO effects to CIO often will see a very notable performance improvement from this change.

@kyri-petrou kyri-petrou merged commit e8aa54d into zio:main Jul 27, 2024
23 checks passed
@kyri-petrou kyri-petrou deleted the fix-interruption-propagation branch July 27, 2024 06:14
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.

Canceler effect in toEffect does not run
2 participants