Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicValue ¶
func (*AtomicValue[T]) Load ¶
func (a *AtomicValue[T]) Load() T
func (*AtomicValue[T]) Store ¶
func (a *AtomicValue[T]) Store(value T)
type KeyedMutex ¶
type KeyedMutex[K comparable] struct { // contains filtered or unexported fields }
func (*KeyedMutex[K]) Lock ¶
func (km *KeyedMutex[K]) Lock(key K) (unlock func())
type MutexGuarded ¶
type MutexGuarded[T any] struct { // contains filtered or unexported fields }
func (*MutexGuarded[T]) Load ¶
func (mg *MutexGuarded[T]) Load() T
func (*MutexGuarded[T]) Modify ¶
func (mg *MutexGuarded[T]) Modify(f func(value *T))
func (*MutexGuarded[T]) Store ¶
func (mg *MutexGuarded[T]) Store(value T)
Click to show internal directories.
Click to hide internal directories.