Versions in this module Expand all Collapse all v1 v1.1.1 Feb 9, 2026 Changes in this version type Map + func (m *Map[K, V]) All() iter.Seq2[K, V] + func (m *Map[K, V]) AllRelaxed() iter.Seq2[K, V] + func (m *Map[K, V]) DeleteMatching(f func(key K, value V) (delete, stop bool)) int + func (m *Map[K, V]) RangeRelaxed(f func(key K, value V) bool) v1.1.0 Sep 15, 2025 v1.0.0 May 8, 2025 Changes in this version + func ToPlainMap[K comparable, V any](m *Map[K, V]) map[K]V + func WithGrowOnly() func(*MapConfig) + func WithPresize(sizeHint int) func(*MapConfig) + func WithSerialResize() func(*MapConfig) + type ComputeOp int + const CancelOp + const DeleteOp + const UpdateOp + type Counter struct + func NewCounter() *Counter + func (c *Counter) Add(delta int64) + func (c *Counter) Dec() + func (c *Counter) Inc() + func (c *Counter) Reset() + func (c *Counter) Value() int64 + type MPMCQueue struct + func NewMPMCQueueOf[I any](capacity int) *MPMCQueue[I] + func NewMPMCQueue[I any](capacity int) *MPMCQueue[I] + func (q *MPMCQueue[I]) TryDequeue() (item I, ok bool) + func (q *MPMCQueue[I]) TryEnqueue(item I) bool + type MPMCQueueOf = MPMCQueue[I] + type Map struct + func NewMapOf[K comparable, V any](options ...func(*MapConfig)) *Map[K, V] + func NewMap[K comparable, V any](options ...func(*MapConfig)) *Map[K, V] + func (m *Map[K, V]) Clear() + func (m *Map[K, V]) Compute(key K, valueFn func(oldValue V, loaded bool) (newValue V, op ComputeOp)) (actual V, ok bool) + func (m *Map[K, V]) Delete(key K) + func (m *Map[K, V]) Load(key K) (value V, ok bool) + func (m *Map[K, V]) LoadAndDelete(key K) (value V, loaded bool) + func (m *Map[K, V]) LoadAndStore(key K, value V) (actual V, loaded bool) + func (m *Map[K, V]) LoadOrCompute(key K, valueFn func() (newValue V, cancel bool)) (value V, loaded bool) + func (m *Map[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool) + func (m *Map[K, V]) Range(f func(key K, value V) bool) + func (m *Map[K, V]) Size() int + func (m *Map[K, V]) Stats() MapStats + func (m *Map[K, V]) Store(key K, value V) + type MapConfig struct + type MapOf = Map[K, V] + type MapStats struct + Capacity int + Counter int + CounterLen int + EmptyBuckets int + MaxEntries int + MinEntries int + RootBuckets int + Size int + TotalBuckets int + TotalGrowths int64 + TotalShrinks int64 + func (s *MapStats) ToString() string + type RBMutex struct + func NewRBMutex() *RBMutex + func (mu *RBMutex) Lock() + func (mu *RBMutex) RLock() *RToken + func (mu *RBMutex) RUnlock(t *RToken) + func (mu *RBMutex) TryLock() bool + func (mu *RBMutex) TryRLock() (bool, *RToken) + func (mu *RBMutex) Unlock() + type RToken struct + type SPSCQueue struct + func NewSPSCQueueOf[I any](capacity int) *SPSCQueue[I] + func NewSPSCQueue[I any](capacity int) *SPSCQueue[I] + func (q *SPSCQueue[I]) TryDequeue() (item I, ok bool) + func (q *SPSCQueue[I]) TryEnqueue(item I) bool + type SPSCQueueOf = SPSCQueue[I] + type UMPSCQueue struct + func NewUMPSCQueue[T any]() *UMPSCQueue[T] + func (q *UMPSCQueue[T]) Dequeue() T + func (q *UMPSCQueue[T]) Enqueue(value T)