hardbyte / hardbyte/python-can

Notifier restart

未关闭
#2,030 6 条评论 0 个 reaction 已指派 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 摘要。