Skip to content

Combine GenericChan and GenericSmartChan traits #5373

Closed
@brson

Description

@brson

GenericSmartChan contains try_recv which returns None if the sender has closed. I split it out from GenericChan because I didn't think there were reasonable semantics for Readers that want to implement try_recv, but I think in the case of I/O streams try_recv can basically mean 'receive unless EOF`. Does this make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions