MCPcopy
hub / github.com/dropbox/godropbox / TryLock

Method TryLock

container/concurrent/lockstore/store.go:115–117  ·  view source on GitHub ↗
(key string, timeout time.Duration)

Source from the content-addressed store, hash-verified

113}
114
115func (p *_LockStoreImp) TryLock(key string, timeout time.Duration) (success bool) {
116 return p.tryLock(key, timeout, _Lock, _Unlock)
117}
118
119func (p *_LockStoreImp) Lock(key string) {
120 p.lock(key, _Lock)

Callers

nothing calls this directly

Calls 1

tryLockMethod · 0.95

Tested by

no test coverage detected