Skip to main content

Module event

Module event 

Source
Expand description

In-process async event bus — actually lock-free on the emit path.

Listeners live in an ArcSwap snapshot (the same proven pattern as tenants / secrets / masking / dynamic routes): subscribe is a clone-and-swap on the control plane, emit is ONE atomic pointer load plus a frozen HashMap probe. The previous implementation used RwLock reads per emit while documenting itself as lock-free — the kind of drift this framework’s invariants exist to prevent.

Structs§

EventBus

Traits§

Listener