Documentation ¶
Index ¶
- type SyncMap
- func (a *SyncMap[T1, T2]) Delete(key T1)
- func (a *SyncMap[T1, T2]) Load(key T1) (r T2, _ bool)
- func (a *SyncMap[T1, T2]) LoadAndDelete(key T1) (r T2, _ bool)
- func (a *SyncMap[T1, T2]) LoadOrStore(key T1, value T2) (r T2, _ bool)
- func (a *SyncMap[T1, T2]) Range(f func(key T1, value T2) bool)
- func (a *SyncMap[T1, T2]) Store(key T1, value T2)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncMap ¶
type SyncMap[key, value any] struct { // contains filtered or unexported fields }
func (*SyncMap[T1, T2]) LoadAndDelete ¶
func (*SyncMap[T1, T2]) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.