pub fn lock(&self) -> FailResult<Option<LockfileGuard>> {
            let mut lock = self.try_lock()?;
            while lock.is_none() {
                std::thread::sleep(Default::default());
                lock = self.try_lock()?;
            }
            Ok(lock)
        }
/// Retries until locking is successful. This could deadlock.
Retries until locking is successful. This could deadlock.
Retries until locking is successful . This could deadlock .
pub fn lock(&self) -> FailResult<Option<LockfileGuard>> {
            let mut lock = self.try_lock()?;
            while lock.is_none() {
                std::thread::sleep(Default::default());
                lock = self.try_lock()?;
            }
            Ok(lock)
        }
pub fn lock ( & self ) -> FailResult < Option < LockfileGuard > > { let mut lock = self . try_lock ( ) ? ; while lock . is_none ( ) { std :: thread :: sleep ( Default :: default ( ) ) ; lock = self . try_lock ( ) ? ; } Ok ( lock ) }
Retries until locking is successful.
Retries until locking is successful .
&self
&self