Skip to content

Replace try_send/try_recv with is_closed #10138

Closed
@brson

Description

@brson

These methods combine two operations: send/recv and check whether the channel is closed. try_recv in particular does not do what you would expect - recv or return immediately if no message is available.

No expressiveness would be lost by making the is_closed check its own method, though it may be slightly less efficient.

Nominating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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