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

Method lock_pending

nodedb/src/control/request_tracker.rs:41–46  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39 }
40
41 fn lock_pending(&self) -> MutexGuard<'_, HashMap<RequestId, mpsc::Sender<Response>>> {
42 match self.pending.lock() {
43 Ok(guard) => guard,
44 Err(poisoned) => poisoned.into_inner(),
45 }
46 }
47
48 /// Register a pending request. Returns a bounded receiver the session awaits.
49 ///

Callers 4

registerMethod · 0.80
completeMethod · 0.80
cancelMethod · 0.80
in_flightMethod · 0.80

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected