Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyedMutex ¶
type KeyedMutex struct {
// contains filtered or unexported fields
}
KeyedMutex is a mutex that locks on a key.
func (*KeyedMutex) Lock ¶
func (m *KeyedMutex) Lock(key string) func()
Lock locks the mutex for the given key.
type KeyedMutexItem ¶
type KeyedMutexItem struct {
// contains filtered or unexported fields
}
KeyedMutexItem is an item in a KeyedMutex.
Click to show internal directories.
Click to hide internal directories.