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

Method open_existing_wait

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

Open for a short-lived writer, waiting at most `timeout` for an incompatible process handle to close. Other errors return immediately. The caller must not already hold a handle to the same database.

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

Source from the content-addressed store, hash-verified

975 /// incompatible process handle to close. Other errors return immediately.
976 /// The caller must not already hold a handle to the same database.
977 pub fn open_existing_wait<P: AsRef<Path>>(
978 path: P,
979 timeout: std::time::Duration,
980 ) -> Result<Self, RepositoryError> {
981 Self::wait_for_database(timeout, || Self::open_existing_once(path.as_ref()))
982 }
983
984 /// Read-only counterpart of [`Self::open_existing_wait`].
985 pub fn open_readonly_wait<P: AsRef<Path>>(

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected