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

Method new

libatomic/src/daemon/state.rs:47–52  ·  view source on GitHub ↗
(root: PathBuf)

Source from the content-addressed store, hash-verified

45
46impl RepoHandle {
47 pub fn new(root: PathBuf) -> Self {
48 Self {
49 root,
50 gate: std::sync::Arc::new(tokio::sync::Mutex::new(())),
51 }
52 }
53
54 /// Serialize repository database access: at most one open handle at a
55 /// time for this repository. Acquire before any domain call.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected