Unlock releases named lock. This method must ONLY be called after a successful call to Lock, and only after the critical section is finished, even if it errored or timed out. Unlock cleans up any resources allocated during Lock. Unlock should only return an error if the lock was unable to be release
(ctx context.Context, name string)
| 148 | // cleans up any resources allocated during Lock. Unlock should |
| 149 | // only return an error if the lock was unable to be released. |
| 150 | Unlock(ctx context.Context, name string) error |
| 151 | } |
| 152 | |
| 153 | type TryLocker interface { |
no outgoing calls