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

Method new

clock-bound/src/daemon/async_ring_buffer.rs:70–75  ·  view source on GitHub ↗
(buffer: Arc<Mutex<Buffer<T>>>, notifier: Arc<Notify>)

Source from the content-addressed store, hash-verified

68
69impl<T> Sender<T> {
70 fn new(buffer: Arc<Mutex<Buffer<T>>>, notifier: Arc<Notify>) -> Self {
71 Self {
72 inner: buffer,
73 notifier,
74 }
75 }
76
77 /// Send a value to the ring buffer, overwriting the oldest value if full
78 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected