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

Method try_lock_operation

atomic-repository/src/repository/locks.rs:365–372  ·  view source on GitHub ↗

Try to enter the common and per-working-copy operation scopes in order.

(
        &self,
        working_copy: WorkingCopyId,
    )

Source from the content-addressed store, hash-verified

363
364 /// Try to enter the common and per-working-copy operation scopes in order.
365 pub(super) fn try_lock_operation(
366 &self,
367 working_copy: WorkingCopyId,
368 ) -> Result<WorkingCopyOperationLockGuard, RepositoryError> {
369 self.validate_working_copy(working_copy)?;
370 self.try_lock_common_operation()?
371 .try_lock_working_copy(working_copy)
372 }
373
374 /// Enter the operation hierarchy as a workspace transaction owner.
375 ///

Calls 3

validate_working_copyMethod · 0.80
try_lock_working_copyMethod · 0.80