Check the backend specific documentation for any implementation specific details.
The Notifier object is used as a message distributor for a bus.
Notifier(bus, listeners, timeout=1.0, loop=None)¶
Manages the distribution of
can.Messageinstances to listeners.
Supports multiple buses and listeners.
Remember to call stop() after all messages are received as many listeners carry out flush operations to persist data.
Add new Listener to the notification list. If it is already present, it will be called two times each time a message arrives.
Parameters: listener (can.Listener) – Listener to be added to the list to be notified
Exception raised in thread
Remove a listener from the notification list. This method trows an exception if the given listener is not part of the stored listeners.
Parameters: listener (can.Listener) – Listener to be removed from the list to be notified Raises: ValueError – if listener was never added to this notifier