-
Couldn't load subscription status.
- Fork 1.4k
Add ZPipeline::mapEitherChunked
#9757
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
ce7616f to
196637d
Compare
051f7a2 to
9156fe7
Compare
9156fe7 to
7e857e6
Compare
| * | ||
| * Will stop on the first Left found | ||
| */ | ||
| def mapEitherChunked[Env, Err, In, Out]( |
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.
I hesitated between mapEither and mapEitherChunked
| )(implicit trace: Trace): ZPipeline[Env, Err, In, Out] = { | ||
| lazy val reader: ZChannel[Env, Err, Chunk[In], Any, Err, Chunk[Out], Any] = | ||
| ZChannel.readWithCause( | ||
| chunk => { |
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.
Since destroying chunking is not uncommon, I'm wondering whether we should shortcut chunk.size == 1
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.
It's a good idea! Thanks :)
Done
No description provided.