TryLock attempts to acquire the lock for name, and returns a boolean that reports whether the lock was successfully aquired or not along with any errors that may have occurred. Implementations should honor context cancellation.
(ctx context.Context, name string)
| 157 | // |
| 158 | // Implementations should honor context cancellation. |
| 159 | TryLock(ctx context.Context, name string) (bool, error) |
| 160 | |
| 161 | // Unlock releases named lock. This method must ONLY be called |
| 162 | // after a successful call to TryLock, and only after the critical |
no outgoing calls
no test coverage detected