Skip to content

Sender::send polls forever if channel is disconnected.  #880

Closed
@maffoo

Description

@maffoo

Receiver::recv fails with a RecvError if the channel is disconnected, but Sender::send will just spin forever in that case with a future that is always pending. I'd like to have a send method that keeps trying if the channel is full but fails with a SendError if the channel disconnects. This could be a new method, something like Sender::send_if_connected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions