MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / remove

Method remove

crates/openshell-server/src/tracing_bus.rs:82–86  ·  view source on GitHub ↗

Remove all bus entries for the given sandbox id. This drops the broadcast sender (closing any active receivers with `RecvError::Closed`) and frees the tail buffer.

(&self, sandbox_id: &str)

Source from the content-addressed store, hash-verified

80 /// This drops the broadcast sender (closing any active receivers with
81 /// `RecvError::Closed`) and frees the tail buffer.
82 pub fn remove(&self, sandbox_id: &str) {
83 let mut inner = self.inner.lock().expect("tracing bus lock poisoned");
84 inner.per_id.remove(sandbox_id);
85 inner.tails.remove(sandbox_id);
86 }
87
88 pub fn tail(&self, sandbox_id: &str, max: usize) -> Vec<SandboxStreamEvent> {
89 let inner = self.inner.lock().expect("tracing bus lock poisoned");

Calls

no outgoing calls