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

Method is_lock_contended

atomic-repository/src/error.rs:456–458  ·  view source on GitHub ↗

Whether retrying after the competing operation completes can succeed.

(&self)

Source from the content-addressed store, hash-verified

454impl RepositoryError {
455 /// Whether retrying after the competing operation completes can succeed.
456 pub fn is_lock_contended(&self) -> bool {
457 matches!(self, RepositoryError::LockContended { .. })
458 }
459
460 /// Check if this error indicates the repository doesn't exist
461 pub fn is_not_found(&self) -> bool {

Callers 3

compact_waitingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected