Skip to main content

CONNECTION_NOTIFIERS

Static CONNECTION_NOTIFIERS 

Source
static CONNECTION_NOTIFIERS: OnceLock<Arc<RwLock<HashMap<String, Arc<Notify>>>>>
Expand description

Per-sidecar connection-ready notifiers. Keyed by the sidecar identifier (e.g. "cocoon-main"). Callers that need the connection before issuing an RPC can await the Notify instead of polling IsClientConnected. The Notify is created lazily on first GetConnectionNotify call and fired (notify_waiters) once in ConnectToSideCar after a successful handshake. Subsequent calls see a pre-fired notifier and wake immediately.