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

Method take

nodedb-bridge/src/waker.rs:55–57  ·  view source on GitHub ↗

Check if a notification is pending and clear it. Returns `true` if there was a pending notification.

(&self)

Source from the content-addressed store, hash-verified

53 /// Check if a notification is pending and clear it.
54 /// Returns `true` if there was a pending notification.
55 pub fn take(&self) -> bool {
56 self.signaled.swap(false, Ordering::Acquire)
57 }
58
59 /// Check if a notification is pending without clearing it.
60 pub fn is_signaled(&self) -> bool {

Callers 15

searchMethod · 0.45
build_sidecarFunction · 0.45
navix_searchFunction · 0.45
acorn_searchFunction · 0.45
insertMethod · 0.45
searchMethod · 0.45
ground_truthFunction · 0.45
searchMethod · 0.45
search_with_modeMethod · 0.45
bmw_scoreFunction · 0.45

Calls

no outgoing calls

Tested by 1