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

Method try_lock_operation

atomic-repository/src/repository/locks.rs:340–347  ·  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

338
339 /// Try to enter the common and per-working-copy operation scopes in order.
340 pub(super) fn try_lock_operation(
341 &self,
342 working_copy: WorkingCopyId,
343 ) -> Result<WorkingCopyOperationLockGuard, RepositoryError> {
344 self.validate_working_copy(working_copy)?;
345 self.try_lock_common_operation()?
346 .try_lock_working_copy(working_copy)
347 }
348
349 /// Enter the operation hierarchy as a workspace transaction owner.
350 ///

Calls 3

validate_working_copyMethod · 0.80
try_lock_working_copyMethod · 0.80