MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / exclusive_owned

Method exclusive_owned

libatomic/src/daemon/state.rs:62–64  ·  view source on GitHub ↗

Move maintenance exclusion into blocking work so cancelling its caller cannot release the gate while that work is still using the database.

(&self)

Source from the content-addressed store, hash-verified

60 /// Move maintenance exclusion into blocking work so cancelling its caller
61 /// cannot release the gate while that work is still using the database.
62 pub(super) async fn exclusive_owned(&self) -> tokio::sync::OwnedMutexGuard<()> {
63 self.gate.clone().lock_owned().await
64 }
65
66 /// The persistent repository ID for this daemon: a blake3 digest of the
67 /// canonical root. Slice limitation: RFC D3 wants IDs assigned at init

Callers 5

repairMethod · 0.80
get_project_identityMethod · 0.80
get_workflow_snapshotMethod · 0.80
compact_innerFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected