a8m / a8m/pb

MultiBar::listen hangs on errors

Ouverte
#70 0 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
good first issue
Langage dominant
Rust
Étoiles
600
Forks
59
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Using the pattern in the examples on the website, MultiBar::listen will likely hang if an error occurs as the ProgressBar::finish function will never get called. It'd be nice if listen would stop blocking if there aren't any more progress bars.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Look at the MultiBar::listen implementation and the example usage pattern. Identify where errors might prevent ProgressBar::finish from being called. The fix likely involves modifying the listen loop to detect when all progress bars are finished or have errored, and then exit cleanly. Test by simulating an error in an example to reproduce the hang.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
cli, tooling
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.