Class to dispatch messages to observers. It has a built in buffer to merge messages and dispatch them in a single call to the observers.
:return: description :rtype: type
interval_time_dispatched_buffer: float
interval_time_merging_message: float
message_level: MessageLevel
prefix: str
Initialize self. See help(type(self)) for accurate signature.
float
- 0.1
int
- 1
MessageLevel
- INFO
str
MessageDispatcher
Attach the listener method and return an id to detach it later
MessageObserver
Attach a progress bar to update task messages when a message is sent. return an id to detach it later
ProgressBar
ProgressBarMessageObserver
Create a sub dispatcher with the same configuration as the current dispatcher. The message will be forwarded to the parent dispatcher after prefix and log level modification. This is useful to override the prefix or the log level for a specific part of the code without affecting the parent dispatcher.
Optional
Optional
MessageObserver
bool
Trigger a debug in each subscriber.
str
Trigger a error in each subscriber.
str
Trigger an info in each subscriber.
str
Trigger a message in each subscriber.
DispatchedMessage
Trigger an update in each subscriber.
float
str
Trigger a success in each subscriber.
str
Trigger a warning in each subscriber.
str