Documentation
¶
Overview ¶
Package syncedmap provides a synced map.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncedMap ¶
type SyncedMap[K comparable, V any] struct { // contains filtered or unexported fields }
SyncedMap represents a generic hashmap that is safe for concurrent use by multiple goroutines.
func (*SyncedMap[K, V]) All ¶ added in v0.2.3
All returns an iterator over the map. All does not necessarily correspond to any consistent snapshot of the Map's contents. For a consistent snapshot use SyncedMap.Clone.
func (*SyncedMap[K, V]) Clone ¶ added in v0.2.3
func (sm *SyncedMap[K, V]) Clone() map[K]V
Clone returns a snapshot of the map
Click to show internal directories.
Click to hide internal directories.