MCPcopy Index your code
hub / github.com/coder/coder / New

Function New

coderd/util/syncmap/map.go:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12func New[K, V any]() *Map[K, V] {
13 return &Map[K, V]{
14 m: sync.Map{},
15 }
16}
17
18func (m *Map[K, V]) Store(k K, v V) {
19 m.m.Store(k, v)

Callers 4

TestRetriesFunction · 0.92
NewFakeIDPFunction · 0.92
CustomRoleCacheContextFunction · 0.92
roleCacheFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRetriesFunction · 0.74