MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / drop

Method drop

libatomic/examples/replication_acceptance/peer.rs:103–110  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

101}
102impl Drop for Peer {
103 fn drop(&mut self) {
104 if let Some(stop) = self.stop.take() {
105 let _ = stop.send(());
106 }
107 if let Some(task) = self.task.take() {
108 let _ = task.join();
109 }
110 }
111}
112fn reply(status: StatusCode, body: Vec<u8>, kind: &str) -> Response {
113 (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected