Skip to main content

init_global_moq_event_origin

Function init_global_moq_event_origin 

Source
pub fn init_global_moq_event_origin(origin: MoqEventOrigin) -> bool
Expand description

Register the process-global moq event bus origin.

Must be called once at startup (from the event-service factory) before any EventPublisher::new() or EventSubscriber::new() call. Returns true on the first call, false if already initialized (idempotent).