package
0.0.2
Repository: https://github.com/sofastack/sofa-common-go.git
Documentation: pkg.go.dev

# README

keymutex-go

keymutex-go is a thread-safe mutex for acquiring locks on arbitrary strings which is from k8s/utils but zero allocate.

go test -v -benchmem -run="^$" github.com/detailyang/keymutex-go -bench Benchmark
goos: darwin
goarch: amd64
pkg: github.com/detailyang/keymutex-go
BenchmarkKeyMutex
BenchmarkKeyMutex-8   	31639718	        37.5 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/detailyang/keymutex-go	1.235s