Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ NewMap
Function
NewMap
pkg/concurrent/map.go:13–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
}
12
13
func
NewMap[K comparable, V any]() *Map[K, V] {
14
return
&Map[K, V]{
15
values: make(
map
[K]V),
16
}
17
}
18
19
func
(m *Map[K, V]) Load(key K) (V, bool) {
20
m.mu.RLock()
Callers
15
NewInMemoryTokenStore
Function · 0.92
New
Function · 0.92
newTestHandler
Function · 0.92
NewHandler
Function · 0.92
NewInMemorySessionStore
Function · 0.92
NewSessionManager
Function · 0.92
newTestSessionManager
Function · 0.92
TestRunSession_DifferentSessionsConcurrently
Function · 0.92
NewManager
Function · 0.92
TestMap_StoreLoad
Function · 0.85
TestMap_StoreOverwrites
Function · 0.85
TestMap_Delete
Function · 0.85
Calls
no outgoing calls
Tested by
13
newTestHandler
Function · 0.74
newTestSessionManager
Function · 0.74
TestRunSession_DifferentSessionsConcurrently
Function · 0.74
TestMap_StoreLoad
Function · 0.68
TestMap_StoreOverwrites
Function · 0.68
TestMap_Delete
Function · 0.68
TestMap_Length
Function · 0.68
TestMap_Range
Function · 0.68
TestMap_RangeCallbackCanMutate
Function · 0.68
TestMap_LoadOrStore
Function · 0.68
TestMap_LoadOrStoreConcurrent
Function · 0.68
TestMap_Concurrent
Function · 0.68