Skip to content

Add Pipelines support for DuplexStream #51433

Open
@scalablecory

Description

@scalablecory

PipeWriter's PipeWriterStream could reasonably support completing writes, so we should consider making it implement DuplexStream. It is not technically a duplex stream and could make things messy if we add more APIs onto DuplexStream. That said, anyone using the wrapper is already only using it only for writes, so it wouldn't be horrible to just have it throw on any future read-specific DuplexStream APIs.

Alternately to avoid any confusion, we could add a new DuplexStream-based type for wrapping a PipeWriter/PipeReader.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions