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

Method close

nodedb-cluster/src/applied_watcher/watcher.rs:77–83  ·  view source on GitHub ↗

Mark this watcher closed and wake every waiter with [`WaitOutcome::GroupGone`]. Idempotent.

(&self)

Source from the content-addressed store, hash-verified

75 /// Mark this watcher closed and wake every waiter with
76 /// [`WaitOutcome::GroupGone`]. Idempotent.
77 pub fn close(&self) {
78 let mut guard = self.state.lock().unwrap_or_else(|p| p.into_inner());
79 if !guard.closed {
80 guard.closed = true;
81 self.cv.notify_all();
82 }
83 }
84
85 /// Block until the watermark reaches `target`, the timeout elapses,
86 /// or the watcher is closed.

Callers 11

handle_streamFunction · 0.80
close_is_idempotentFunction · 0.80
removeMethod · 0.80
fetch_credsFunction · 0.80
close_on_version_errorFunction · 0.80
make_test_parquetFunction · 0.80
encode_and_uploadMethod · 0.80

Calls 1

lockMethod · 0.80