hardbyte / hardbyte/python-can

Notifier restart

Ouverte
#2,030 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
1.6k
Forks
697
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Is your feature request related to a problem? Please describe.
After I call `can.notifier.Notifier.stop` not a `Notifier` object, there is no obvious way how to restart the Notifier.
As far as I see, I need to create a new notifier, which leads to another problem - if a `Bus` is added to two Notifiers (even if one of them is stopped) then an exception is raised by `can.notifier._NotifierRegistry.register`.

### Describe the solution you'd like

I would like a `restart` method defined in `Notifier` class which would work exactly like I just created a new Notifier with the exactly the same settings as the existing one.

### Describe alternatives you've considered

- `can.notifier._NotifierRegistry.register` does not raise an exception if another Notifier is stopped

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

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