Function broadcast

Source
pub fn broadcast(event: TorEvent)
Expand description

Broadcast the given TorEvent to any interested subscribers.

As an optimization, does nothing if the event has no subscribers (event_has_subscribers returns false). (also does nothing if the event subsystem hasn’t been initialized yet)

This function isn’t intended for use outside Arti crates (as in, library consumers of Arti shouldn’t broadcast events!).