Skip to content

Add is_disconnected to the mpsc and mpmc endpoints #377

Closed

Description

@FalkWoldmann

Right now the only way to tell if the other side of an mpsc or mpmc channel is gone is to send or receive something. oneshot and watch already have is_disconnected, so adding it to the mpsc and mpmc senders and receivers would keep the channels consistent. Would you take a PR for this? Happy to add len and is_empty too if you think they fit

Activity

  1. tisonkun commented on Oct 30, 2026

    @tisonkun
    Member

    Feel free to send a patch for review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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