-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change Outcome conversion to always treat typed failure as `Outcome…
….Erorred` (typed failure excludes possibility of external interruption) (#549) * Treat `Cause.Empty` + external interruption as `Outcome.Canceled`, since this combination manifests sometimes due to a bug in ZIO runtime * Fix Cause comparison in tests, fix Cogen[Cause] instance * Compare Cause by converting to Outcome first to ignore Cause tree details not important to cats-effect * Enable `genFail` and `genCancel` generators since with above fixes the laws pass with them now * Replace `genRace` and `genParallel` with cats-effect based impls to preserve Outcome when F.canceled is generated * Add test that `Cause.Fail` cannot be present after external interruption * Delegate `race` & `both` to default implementations, because `raceFirst` & `zipPar` semantics do not match them
- Loading branch information
Showing
6 changed files
with
223 additions
and
121 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.