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

Method open_readonly_wait

atomic-repository/src/repository/mod.rs:985–992  ·  view source on GitHub ↗

Read-only counterpart of [`Self::open_existing_wait`].

(
        path: P,
        timeout: std::time::Duration,
    )

Source from the content-addressed store, hash-verified

983
984 /// Read-only counterpart of [`Self::open_existing_wait`].
985 pub fn open_readonly_wait<P: AsRef<Path>>(
986 path: P,
987 timeout: std::time::Duration,
988 ) -> Result<Self, RepositoryError> {
989 Self::wait_for_database(timeout, || {
990 Self::open_readonly_mode(path.as_ref(), false, false)
991 })
992 }
993
994 fn wait_for_database(
995 timeout: std::time::Duration,

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected