Skip to main content

observer

Function observer 

Source
pub fn observer() -> Arc<dyn Observer>
Expand description

Resolve the active observer.

Hot path: returns a cloned Arc (one atomic refcount bump) so the caller does not hold a Guard across await. With no overrides ever installed, this collapses to OVERRIDE_COUNT == 0 test + OBSERVER_GLOBAL.load_full(). Spec 11 § 3.