Notify watchers that the sandbox record has changed.
(&self, sandbox_id: &str)
| 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<()> { |