MCPcopy Create free account
hub / github.com/bajrangCoder/setu / cancel

Method cancel

src/http/client.rs:24–31  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

22
23impl InFlightRequest {
24 pub fn cancel(&mut self) -> bool {
25 if let Some(task) = self.task.take() {
26 task.abort();
27 true
28 } else {
29 false
30 }
31 }
32}
33
34impl HttpClient {

Callers 3

cancel_requestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected