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

Skip to content

Maintain the chunk structure on effectful ZStream combinators #3668

@iravid

Description

@iravid

In #3666, we gave up on the stream's chunk structure to maintain laziness on chunk elements.

A more optimal solution would maintain the chunk structure by executing the effects, accumulating the successful elements in a new chunk, and emit that chunk along with a failure if one occured.

This would probably mean emitting something like Chunk[Take[E, A]] and using flattenTake to unwrap the Take.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions