Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcMap ¶
type ConcMap[K comparable, V any] struct { *sync.RWMutex // contains filtered or unexported fields }
ConcMap is a generic map safe for concurrent use. It uses a sync.RWMutex, so the map may be accessed by an arbitrary number of readers or a single writer.
func New ¶
func New[K comparable, V any]() ConcMap[K, V]
func (ConcMap[K, V]) DeleteIf ¶
DeleteIf iterates over all map entries, and deletes them if the specified function returns true.
Click to show internal directories.
Click to hide internal directories.