pub fn bus() -> Sender<SessionEventEnvelope>Expand description
Get (or initialise) the process-global event bus sender.
Why: Called from any code path that wants to emit. First call wins; all
subsequent calls receive the same Sender. Cheap (single atomic load on
the hot path).
What: Returns a clone of the global sender. The receiver half is created
per subscriber via subscribe().
Test: bus_is_singleton confirms repeated calls return the same channel.