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

Skip to content

Conversation

@SrTobi
Copy link
Contributor

@SrTobi SrTobi commented Jan 25, 2021

fixes #4597

@SrTobi SrTobi requested a review from iravid as a code owner January 25, 2021 17:34
@CLAassistant
Copy link

CLAassistant commented Jan 25, 2021

CLA assistant check
All committers have signed the CLA.

@SrTobi SrTobi changed the title make ZStream more specific make ZStream#peel more specific Jan 25, 2021
adamgfraser
adamgfraser previously approved these changes Jan 25, 2021
* stream is valid only within the scope of [[ZManaged]].
*/
def peel[R1 <: R, E1 >: E, O1 >: O, Z](
sink: ZSink[R1, E1, O1, O1, Z]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sink: ZSink[R1, E1, O1, O1, Z]
sink: ZSink[R1, E1, O, O1, Z]

Copy link
Contributor

Choose a reason for hiding this comment

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

The input type to the ZSink can also be O instead of O1.

@adamgfraser adamgfraser merged commit 3a1611e into zio:master Jan 25, 2021
@adamgfraser
Copy link
Contributor

@SrTobi Thank you! 🙏

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.

ZStream#peel should return more specific ZStream

3 participants