package concurrent

Import Path
	internal/concurrent (on go.dev)

Dependency Relation
	imports 6 packages, and imported by one package

Involved Source Files hashtriemap.go
Package-Level Type Names (only one)
/* sort by: | */
Type Parameters: K: comparable V: comparable HashTrieMap is an implementation of a concurrent hash-trie. The implementation is designed around frequent loads, but offers decent performance for stores and deletes as well, especially if the map is larger. It's primary use-case is the unique package, but can be used elsewhere as well. All returns an iter.Seq2 that produces all key-value pairs in the map. The enumeration does not represent any consistent snapshot of the map, but is guaranteed to visit each unique key-value pair only once. It is safe to operate on the tree during iteration. No particular enumeration order is guaranteed. CompareAndDelete deletes the entry for key if its value is equal to old. If there is no current value for key in the map, CompareAndDelete returns false (even if the old value is the nil interface value). Load returns the value stored in the map for a key, or nil if no value is present. The ok result indicates whether value was found in the map. LoadOrStore returns the existing value for the key if present. Otherwise, it stores and returns the given value. The loaded result is true if the value was loaded, false if stored. func NewHashTrieMap[K, V]() *HashTrieMap[K, V]
Package-Level Functions (only one)
Type Parameters: K: comparable V: comparable NewHashTrieMap creates a new HashTrieMap for the provided key and value.