Add is_disconnected to the mpsc and mpmc endpoints
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Rust
- 星标
- 285
- 派生
- 49
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 33
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/asyncband 的其他 Issue
-
难度 4/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 5/5 一周以上 新手友好度 35/100
apache/asyncband#324 · 1 条评论 ·
维护者通常 1 天内回复
-
Discuss shared broadcast receives without a Clone bound可能已有人在做 @orthur2 于 17 天前认领。 未关闭enhancement question
难度 5/5 一周以上 新手友好度 30/100
apache/asyncband#312 · 5 条评论 ·
维护者通常 1 天内回复
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 35/100
apache/asyncband#298 · 8 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
apache/asyncband#272 · 2 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
haowjy/mars-agents#295 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 78/100
rivet-dev/rivet#5933 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-verification
难度 2/5 1-3 小时 新手友好度 72/100
EchoTools/nevr-runtime#1272 ·
维护者通常 1 天内回复
-
Add a `--skip-readme` option to `gleam new`可能已有人在做 @mine-tech-oficial 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
gleam-lang/gleam#6458 · 1 个 reaction ·
维护者通常 1 天内回复