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

Method new

crates/openshell-server/src/sandbox_watch.rs:23–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21impl SandboxWatchBus {
22 #[must_use]
23 pub fn new() -> Self {
24 Self {
25 inner: Arc::new(Mutex::new(HashMap::new())),
26 }
27 }
28
29 fn sender_for(&self, sandbox_id: &str) -> broadcast::Sender<()> {
30 let mut inner = self.inner.lock().expect("sandbox watch bus lock poisoned");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected