-
Couldn't load subscription status.
- Fork 1.4k
Add ZStream.bimap and either #1725
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
Conversation
| /** | ||
| * Returns a stream whose failures and successes have been lifted into an | ||
| * `Either`.The resulting stream cannot fail, because the failures have | ||
| * been exposed as part of the `Either` success case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Add a note that the resulting stream will emit the failure that occured, then end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, right. Is that the correct behaviour? or instead we keep pulling even after error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's what we do right now because the contract of Pull (currently!) doesn't allow for pulling after a failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs a bit less finals
| * Creates a stream from a single value that will get cleaned up after the | ||
| * stream is consumed | ||
| */ | ||
| final def bracketExit[R, E, A]( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
|
@iravid done |
Gonna add new combinators as I see a need for them writing cats instances.
cc @iravid