MCPcopy Create free account
hub / github.com/cloudbase/garm / TryLock

Method TryLock

locking/interface.go:23–23  ·  view source on GitHub ↗
(key, identifier string)

Source from the content-addressed store, hash-verified

21
22type Locker interface {
23 TryLock(key, identifier string) bool
24 Lock(key, identifier string)
25 LockWithContext(ctx context.Context, key, identifier string) error
26 LockedBy(key string) (string, bool)

Callers 3

TryLockMethod · 0.65
TryLockFunction · 0.65

Implementers 1

keyMutexlocking/local_locker.go

Calls

no outgoing calls

Tested by 1