Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dolthub/dolt
/ New
Function
New
go/libraries/utils/concurrentmap/concurrentmap.go:23–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
)
22
23
func
New[K comparable, V any]() *Map[K, V] {
24
return
&Map[K, V]{m: make(
map
[K]V)}
25
}
26
27
type
Map[K comparable, V any]
struct
{
28
mu sync.RWMutex
Callers
7
TestConcurrentMapConstructor
Function · 0.70
TestConcurrentMapSetAndGet
Function · 0.70
TestConcurrentMapDelete
Function · 0.70
TestConcurrentMapLen
Function · 0.70
TestConcurrentMapDeepCopy
Function · 0.70
TestConcurrentMapIter
Function · 0.70
TestConcurrentMapSetAndGetWithConcurrency
Function · 0.70
Calls
no outgoing calls
Tested by
7
TestConcurrentMapConstructor
Function · 0.56
TestConcurrentMapSetAndGet
Function · 0.56
TestConcurrentMapDelete
Function · 0.56
TestConcurrentMapLen
Function · 0.56
TestConcurrentMapDeepCopy
Function · 0.56
TestConcurrentMapIter
Function · 0.56
TestConcurrentMapSetAndGetWithConcurrency
Function · 0.56