/keylock

Golang utility class KeyLock: lock by string key, so as to avoid giant lock

Primary LanguageGoApache License 2.0Apache-2.0

keylock

Golang utility class KeyLock: lock by string key, so as to avoid giant lock

Testing

Since this utility deals with concurrency so much, it is important to run the tests with the -race flag:

$ go test -race