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

Skip to content

Conversation

@regiskuckaertz
Copy link
Member

Gonna add new combinators as I see a need for them writing cats instances.

cc @iravid

/**
* 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.
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member

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.

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.

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](
Copy link
Member

Choose a reason for hiding this comment

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

nice

@regiskuckaertz
Copy link
Member Author

@iravid done

@iravid iravid merged commit 7fd7b8a into zio:master Sep 21, 2019
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