Read-only counterpart of [`Self::open_existing_wait`].
(
path: P,
timeout: std::time::Duration,
)
| 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, |