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,
)
| 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>>( |