# {py:mod}`simvx.core.event_bus` ```{py:module} simvx.core.event_bus ``` ```{autodoc2-docstring} simvx.core.event_bus :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`EventBus ` - ```{autodoc2-docstring} simvx.core.event_bus.EventBus :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`EventCls ` - ```{autodoc2-docstring} simvx.core.event_bus.EventCls :summary: ``` * - {py:obj}`Handler ` - ```{autodoc2-docstring} simvx.core.event_bus.Handler :summary: ``` ```` ### API ````{py:data} EventCls :canonical: simvx.core.event_bus.EventCls :value: > None ```{autodoc2-docstring} simvx.core.event_bus.EventCls ``` ```` ````{py:data} Handler :canonical: simvx.core.event_bus.Handler :value: > None ```{autodoc2-docstring} simvx.core.event_bus.Handler ``` ```` `````{py:class} EventBus() :canonical: simvx.core.event_bus.EventBus ```{autodoc2-docstring} simvx.core.event_bus.EventBus ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.event_bus.EventBus.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.core.event_bus.EventBus.__slots__ :value: > ('_subs', '_deferred') ```{autodoc2-docstring} simvx.core.event_bus.EventBus.__slots__ ``` ```` ````{py:method} connect(event_cls: simvx.core.event_bus.EventCls, handler: simvx.core.event_bus.Handler) -> None :canonical: simvx.core.event_bus.EventBus.connect ```{autodoc2-docstring} simvx.core.event_bus.EventBus.connect ``` ```` ````{py:method} disconnect(event_cls: simvx.core.event_bus.EventCls, handler: simvx.core.event_bus.Handler) -> None :canonical: simvx.core.event_bus.EventBus.disconnect ```{autodoc2-docstring} simvx.core.event_bus.EventBus.disconnect ``` ```` ````{py:method} emit(event: typing.Any) -> None :canonical: simvx.core.event_bus.EventBus.emit ```{autodoc2-docstring} simvx.core.event_bus.EventBus.emit ``` ```` ````{py:method} emit_deferred(event: typing.Any) -> None :canonical: simvx.core.event_bus.EventBus.emit_deferred ```{autodoc2-docstring} simvx.core.event_bus.EventBus.emit_deferred ``` ```` ````{py:method} flush_deferred() -> None :canonical: simvx.core.event_bus.EventBus.flush_deferred ```{autodoc2-docstring} simvx.core.event_bus.EventBus.flush_deferred ``` ```` `````