hardbyte / hardbyte/python-can

Notifier restart

オープン
#2,030 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
1.6k
フォーク
697
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。