Documentation ¶
Index ¶
- type SyncMap
- func (m *SyncMap[K, V]) CompareAndDelete(k K, old V) bool
- func (m *SyncMap[K, V]) CompareAndSwap(k K, old, new V) bool
- func (m *SyncMap[K, V]) Delete(k K)
- func (m *SyncMap[K, V]) Exists(k K) bool
- func (m *SyncMap[K, V]) Len() (l int)
- func (m *SyncMap[K, V]) Load(k K) (V, bool)
- func (m *SyncMap[K, V]) LoadAndDelete(k K) (V, bool)
- func (m *SyncMap[K, V]) LoadOrStore(k K, v V) (V, bool)
- func (m *SyncMap[K, V]) Range(f func(k K, v V) bool)
- func (m *SyncMap[K, V]) Store(k K, v V)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncMap ¶
type SyncMap[K comparable, V any] sync.Map
func (*SyncMap[K, V]) CompareAndDelete ¶
func (*SyncMap[K, V]) CompareAndSwap ¶
func (*SyncMap[K, V]) LoadAndDelete ¶
func (*SyncMap[K, V]) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.