MCPcopy Create free account
hub / github.com/koding/kite / NewIdlock

Function NewIdlock

kontrol/idlock.go:11–16  ·  view source on GitHub ↗

New returns a new IdLock

()

Source from the content-addressed store, hash-verified

9
10// New returns a new IdLock
11func NewIdlock() *IdLock {
12 return &IdLock{
13 locks: make(map[string]sync.Locker),
14 }
15
16}
17
18// Get returns a lock that is bound to a specific id.
19func (i *IdLock) Get(id string) sync.Locker {

Callers 1

NewWithoutHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected