Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncMap ¶
type SyncMap[K comparable, V any] struct { // contains filtered or unexported fields }
SyncMap is the generic version of the sync.Map.
func NewSyncMap ¶
func NewSyncMap[K comparable, V any](capacity int) SyncMap[K, V]
NewSyncMap returns a new SyncMap.
func (*SyncMap[K, V]) Delete ¶
Delete deletes the value for a key, returning the previous value if any. The exist result reports whether the key was present.
Click to show internal directories.
Click to hide internal directories.