MCPcopy 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
13func NewMap[K comparable, V any]() *Map[K, V] {
14 return &Map[K, V]{
15 values: make(map[K]V),
16 }
17}
18
19func (m *Map[K, V]) Load(key K) (V, bool) {
20 m.mu.RLock()

Callers 15

NewInMemoryTokenStoreFunction · 0.92
NewFunction · 0.92
newTestHandlerFunction · 0.92
NewHandlerFunction · 0.92
NewInMemorySessionStoreFunction · 0.92
NewSessionManagerFunction · 0.92
newTestSessionManagerFunction · 0.92
NewManagerFunction · 0.92
TestMap_StoreLoadFunction · 0.85
TestMap_StoreOverwritesFunction · 0.85
TestMap_DeleteFunction · 0.85

Calls

no outgoing calls

Tested by 13

newTestHandlerFunction · 0.74
newTestSessionManagerFunction · 0.74
TestMap_StoreLoadFunction · 0.68
TestMap_StoreOverwritesFunction · 0.68
TestMap_DeleteFunction · 0.68
TestMap_LengthFunction · 0.68
TestMap_RangeFunction · 0.68
TestMap_LoadOrStoreFunction · 0.68
TestMap_ConcurrentFunction · 0.68