Locker implements a spinlock for a string key.
| 6 | |
| 7 | // Locker implements a spinlock for a string key. |
| 8 | type Locker interface { |
| 9 | Lock(key string) error |
| 10 | Unlock(key string) error |
| 11 | } |
| 12 | |
| 13 | type countedLock struct { |
| 14 | mu sync.Mutex |
no outgoing calls
no test coverage detected