MCPcopy Create free account
hub / github.com/aws/clock-bound / is_empty

Method is_empty

clock-bound/src/daemon/async_ring_buffer.rs:107–109  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

105 /// Return true if the buffer is empty
106 #[expect(clippy::missing_panics_doc, reason = "not handling poisoned mutex")]
107 pub fn is_empty(&self) -> bool {
108 self.inner.lock().unwrap().is_empty()
109 }
110
111 /// Returns `true` if the receiver has dropped, and therefore the channel is closed
112 #[expect(clippy::missing_panics_doc, reason = "not handling poisoned mutex")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected