Skip to content

Make try_recv do what you expect #10139

Description

@brson

The obvious semantics for try_recv is to return a message or return immediately if none is available (i.e. peek + recv). That's not what it does though; instead it blocks waiting for a message and returns None when the sender closes the channel.

cc #10138

Nominating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions