TryLock attempts to acquire the lock given the timeout. Returns true if it successfully acquire the lock. False otherwise
(key string, timeout time.Duration)
| 19 | // TryLock attempts to acquire the lock given the timeout. Returns |
| 20 | // true if it successfully acquire the lock. False otherwise |
| 21 | TryLock(key string, timeout time.Duration) (success bool) |
| 22 | |
| 23 | // Unlock unlocks the mutex that is used for the given key |
| 24 | Unlock(key string) |
no outgoing calls