Skip to content

Stream: finish after returning the first error #2773

Open
@SZenglein

Description

@SZenglein

A wrapper type for streams that functions almost like take_while but also returns the first value that matches the condition would be nice to have.

My use-case is returning a (grpc) stream that should terminate as soon as one error occurs. However, it is very inconvenient to also return the specific error reason to indicate the stream has not completed normally, but with an error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions