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)
| 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"); |
no outgoing calls