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

Skip to content

Conversation

@joroKr21
Copy link
Contributor

Use case: forward a stream from storage to HTTP server, but log errors.

@joroKr21 joroKr21 requested a review from iravid as a code owner August 14, 2020 20:11
}

/**
* Runs the specified effect if this stream fails, providing the error to the effect if it exists.
Copy link
Member

Choose a reason for hiding this comment

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

The corresponding method on ZIO guarantees the execution of cleanup even in the face of interruption, and also executes it uninterruptibly.

I don't think it's critical to replicate those same semantics here, but let's add a note on the scaladoc about this difference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I'm not sure if it's possible to provide the same semantics.
I added a note to the scaladoc.

Use case: forward a stream from storage to HTTP server, but log errors.
Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

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

Thanks @joroKr21!

@iravid iravid merged commit 8381ce6 into zio:master Aug 15, 2020
@joroKr21 joroKr21 deleted the zstream-on-error branch August 15, 2020 08:59
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