Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add is_disconnected to the mpsc and mpmc endpoints

Đang mở
#377 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the existing is_disconnected implementations for oneshot and watch, then find the mpsc and mpmc sender and receiver APIs. Add matching methods and tests that cover whether the opposite side is disconnected; done when the methods behave consistently across both channel types. The issue also mentions len and is_empty as optional ideas, so confirm their scope before including them.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Rust
Star
285
Fork
49
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
33

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/asyncband

Tất cả issue của apache/asyncband

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.