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

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

No description provided.

@adamgfraser adamgfraser requested review from jdegoes and vigoo April 5, 2023 19:12
ZChannel.readWithCause(
(out: OutElem) => ZChannel.fromZIO(f(out)).flatMap(ZChannel.write(_)) *> reader,
(e: OutErr1) => ZChannel.fail(e),
(e: Cause[OutErr1]) => ZChannel.failCause(e),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is if we extract an E in failureOrCause and the fail with that E we lose the tracing information associated with the original cause.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strikes me we should probably have ZChannel.refailCause at some point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@adamgfraser adamgfraser merged commit 5e3c9d6 into zio:series/2.x Apr 7, 2023
@adamgfraser adamgfraser deleted the mapoutzio branch June 27, 2023 18:22
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.

3 participants