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

Method drop

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

Source from the content-addressed store, hash-verified

117
118impl<T> Drop for Sender<T> {
119 fn drop(&mut self) {
120 {
121 // brace drops guard
122 let mut guard = self.inner.lock().unwrap();
123 guard.sender_dropped = true;
124 }
125 self.notifier.notify_one();
126 }
127}
128
129/// The receiver half of a ring buffer SPSC

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected