MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / cancel

Method cancel

src/net/http.rs:115–118  ·  view source on GitHub ↗

Cancel and remove a pending request. Consumes the handle.

(self)

Source from the content-addressed store, hash-verified

113
114 /// Cancel and remove a pending request. Consumes the handle.
115 pub fn cancel(self) {
116 let mut mgr = super::NET_MANAGER.lock().unwrap();
117 mgr.http_requests.remove(&self.id);
118 }
119}
120
121/// Abstraction over the pending receive mechanism.

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected