Skip to content
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

Changed Pull#{stream,streamNoScope} to require Unit result type #1512

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist commented Jun 15, 2019

This was something I noticed when working on the topic/fs3 branch. This PR changes the stream and streamNoScope methods to require the result type of the Pull to be Unit. This is the Pull equivalent of -Xfatal-warnings -Ywarn-value-discard -- folks can explicitly indicate they want the result type thrown away via p.void.stream.

Note how many cases in fs2 itself were using a nonsensical result type -- these are vestiges of the old 0.9 Pull API where termination has to be explicitly signaled via an Option result type.

@SystemFw SystemFw merged commit 34f3ce5 into typelevel:series/1.1 Jun 15, 2019
@mpilquist mpilquist modified the milestones: 1.1.0-M2, 1.1.0 Sep 6, 2019
@mpilquist mpilquist deleted the topic/warn-pull-discard branch February 18, 2020 12:56
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