Function global_context
Function global_context
Function global_context
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub fn global_context() -> Arc<RwLock<NemoRelayContextState>>
Return the process-global runtime context state handle.
This lazily initializes the shared NemoRelayContextState on first use and returns a cloned Arc handle to the same underlying RwLock on every subsequent call.
An Arc pointing at the singleton RwLock that stores the runtime context state for the current process.
All callers share the same underlying state. Mutations made through one handle are visible through every other handle returned by this function.