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

Skip to content

Conversation

@iravid
Copy link
Member

@iravid iravid commented Oct 3, 2020

We go out of our way to drop empty chunks in most
constructors/combinators but some combinators might still emit empty
chunks - namely, ZStream#collect.

I'm not sure why it was implemented this way, but ZStream#takeWhile would stop when encountering an
empty chunk. This fixes the logic there.

Resolves #4272.

Also hardens some of the property checks by enhancing the stream generator to inject empty chunks into the generated streams.

@iravid iravid requested a review from adamgfraser October 3, 2020 10:56
jdegoes
jdegoes previously approved these changes Oct 3, 2020
@iravid iravid merged commit 7e27aa2 into zio:master Oct 3, 2020
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#takeWhile bug

2 participants