MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / cancel

Method cancel

nodedb/src/control/request_tracker.rs:99–101  ·  view source on GitHub ↗

Remove a pending request (e.g., on session disconnect).

(&self, id: &RequestId)

Source from the content-addressed store, hash-verified

97
98 /// Remove a pending request (e.g., on session disconnect).
99 pub fn cancel(&self, id: &RequestId) {
100 self.lock_pending().remove(id);
101 }
102
103 /// Number of in-flight requests.
104 pub fn in_flight(&self) -> usize {

Callers 1

cancel_removes_pendingFunction · 0.45

Calls 2

lock_pendingMethod · 0.80
removeMethod · 0.45

Tested by 1

cancel_removes_pendingFunction · 0.36