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

Method notify

crates/openshell-server/src/sandbox_watch.rs:42–45  ·  view source on GitHub ↗

Notify watchers that the sandbox record has changed.

(&self, sandbox_id: &str)

Source from the content-addressed store, hash-verified

40
41 /// Notify watchers that the sandbox record has changed.
42 pub fn notify(&self, sandbox_id: &str) {
43 let tx = self.sender_for(sandbox_id);
44 let _ = tx.send(());
45 }
46
47 /// Subscribe to sandbox updates.
48 pub fn subscribe(&self, sandbox_id: &str) -> broadcast::Receiver<()> {

Calls 1

sender_forMethod · 0.45