Registry / utility / moby-locker

moby-locker

JSON →
library1.0.1gogounverified

Package locker provides a mechanism for creating finer-grained locking to help free up more global locks.

go get github.com/moby/locker
INSTALL
IMPORT
SIG · MOBY-LOCKER
M
moby-locker
utilitygov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

locker
github.com/moby/locker

Creates a locker and locks/unlocks by key.

package main import ( "fmt" "github.com/moby/locker" ) func main() { l := locker.New() l.Lock("key") fmt.Println("locked") l.Unlock("key") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
moby-locker — go get moby-locker · libregistry