EventBus
EventBus
Legacy process-global compatibility wrapper around ModelEventBus.
This class exists mainly to preserve older code paths and tests that still
expect a process-global event bus. New code should prefer the model-owned
ModelEventBus exposed through
model.events.
Under the hood, this wrapper forwards operations to an internal
ModelEventBus instance while preserving compatibility with older code
that mutates _subscribers directly.
Attributes
Methods:
_sync_bus
classmethod
Synchronize the wrapper bus with the public compatibility storage.
subscribe
classmethod
Register a callback through the legacy compatibility wrapper.
unsubscribe
classmethod
Remove a callback through the legacy compatibility wrapper.