Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PartitionLocker ¶
type PartitionLocker struct {
// contains filtered or unexported fields
}
https://medium.com/@petrlozhkin/kmutex-lock-mutex-by-unique-id-408467659c24
func NewPartitionLocker ¶
func NewPartitionLocker(l sync.Locker) *PartitionLocker
func (*PartitionLocker) Lock ¶
func (p *PartitionLocker) Lock(id string)
func (*PartitionLocker) Unlock ¶
func (p *PartitionLocker) Unlock(id string)
Click to show internal directories.
Click to hide internal directories.