keylock

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL