Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardedMutex ¶
type ShardedMutex struct {
// contains filtered or unexported fields
}
func (ShardedMutex) Lock ¶
func (sm ShardedMutex) Lock(shard int)
func (ShardedMutex) Shards ¶
func (sm ShardedMutex) Shards() int
func (ShardedMutex) Unlock ¶
func (sm ShardedMutex) Unlock(shard int)
type ShardedMutexFor ¶
type ShardedMutexFor[K any] struct { // contains filtered or unexported fields }
func (ShardedMutexFor[K]) GetLock ¶
func (sm ShardedMutexFor[K]) GetLock(key K) sync.Locker
func (ShardedMutexFor[K]) Lock ¶
func (sm ShardedMutexFor[K]) Lock(key K)
func (ShardedMutexFor[K]) Unlock ¶
func (sm ShardedMutexFor[K]) Unlock(key K)
Click to show internal directories.
Click to hide internal directories.