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

Function sender_drop

clock-bound/src/daemon/async_ring_buffer.rs:326–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324
325 #[tokio::test]
326 async fn sender_drop() {
327 let (tx, rx) = create::<i32>(2);
328 tx.send(1).unwrap();
329 drop(tx);
330
331 assert!(rx.is_closed());
332 // Should receive BufferClosedError after sender is dropped
333 assert!(rx.recv().await.is_err());
334 }
335
336 #[tokio::test]
337 async fn receiver_drop() {

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected