Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyValue ¶ added in v0.0.8
type KeyValue[K comparable, V any] struct { Key K Value V }
type RLockValue ¶ added in v0.0.17
type RLockValue[T any] struct { Value T // contains filtered or unexported fields }
func NewRLockValue ¶ added in v0.0.17
func NewRLockValue[T any](initialValue T) *RLockValue[T]
func (*RLockValue[T]) Load ¶ added in v0.0.17
func (v *RLockValue[T]) Load() (T, func())
func (*RLockValue[T]) Store ¶ added in v0.0.17
func (v *RLockValue[T]) Store(value T) T
Returns old value
type SyncMap ¶ added in v0.0.8
type SyncMap[K comparable, V any] struct { Parent *SyncMap[K, V] // contains filtered or unexported fields }
func NewSyncMap ¶ added in v0.0.8
func NewSyncMap[K comparable, V any](initialKeyValues ...KeyValue[K, V]) *SyncMap[K, V]
func (*SyncMap[K, V]) LoadOrStore ¶ added in v0.0.8
LoadOrStores shallow
type SyncSlice ¶ added in v0.0.17
type SyncSlice[T any] struct { // contains filtered or unexported fields }
func NewSyncSlice ¶ added in v0.0.17
Click to show internal directories.
Click to hide internal directories.