Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add is_disconnected to the mpsc and mpmc endpoints

Abierto
#377 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Rust
Estrellas
288
Forks
50
Merge medio
1 d 13 h
PR fusionados (30 d)
33

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/asyncband

Todos los issues de apache/asyncband

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.