MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / shutdown_all

Method shutdown_all

crates/opencode-plugin/src/subprocess/loader.rs:188–195  ·  view source on GitHub ↗

Shut down all plugin subprocesses.

(&self)

Source from the content-addressed store, hash-verified

186
187 /// Shut down all plugin subprocesses.
188 pub async fn shutdown_all(&self) {
189 let clients = self.clients.read().await;
190 for client in clients.iter() {
191 if let Err(e) = client.shutdown().await {
192 tracing::warn!(plugin = client.name(), error = %e, "error shutting down plugin");
193 }
194 }
195 }
196
197 /// Get the auth bridge for a given provider ID, if any plugin provides it.
198 pub async fn auth_bridge(&self, provider: &str) -> Option<Arc<PluginAuthBridge>> {

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
shutdownMethod · 0.80

Tested by

no test coverage detected