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

Skip to content

Conversation

@guizmaii
Copy link
Member

No description provided.

@guizmaii guizmaii force-pushed the zpipeline_mapChunksEither branch 4 times, most recently from f6637a1 to 6b72413 Compare April 10, 2025 08:36
@guizmaii guizmaii marked this pull request as ready for review April 10, 2025 08:37
@CLAassistant
Copy link

CLAassistant commented Apr 10, 2025

CLA assistant check
All committers have signed the CLA.

lazy val reader: ZChannel[Env, Err, Chunk[In], Any, Err, Chunk[Out], Any] =
ZChannel.readWithCause(
chunk => {
if (chunk.isEmpty) reader
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not actually sure this is the correct behaviour. The user might want to deal with the "empty chunk" case and decide to return a Left or Right in this case, no? 🤔

Copy link
Contributor

@kyri-petrou kyri-petrou Apr 10, 2025

Choose a reason for hiding this comment

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

Is it even possible to have an empty chunk? If so we should definitely pass it to f(_), which means that either way we shouldn't handle .isEmpty

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it even possible to have an empty chunk?

This is a good question. I don't know.

I made the change

@guizmaii guizmaii force-pushed the zpipeline_mapChunksEither branch from 859ff38 to c9745c8 Compare April 10, 2025 08:41
hearnadam
hearnadam previously approved these changes Apr 11, 2025
@guizmaii guizmaii enabled auto-merge (squash) April 12, 2025 05:22
@guizmaii
Copy link
Member Author

guizmaii commented Apr 12, 2025

@hearnadam I need another approval as I merged your suggestions 😅

@guizmaii guizmaii merged commit a8d9c23 into series/2.x Apr 13, 2025
18 checks passed
@guizmaii guizmaii deleted the zpipeline_mapChunksEither branch April 13, 2025 00:12
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.

5 participants