MCPcopy Create free account
hub / github.com/Monibuca/engine / Add

Method Add

util/map.go:12–15  ·  view source on GitHub ↗
(k K, v V)

Source from the content-addressed store, hash-verified

10}
11
12func (m *Map[K, V]) Add(k K, v V) bool {
13 _, loaded := m.LoadOrStore(k, v)
14 return !loaded
15}
16
17func (m *Map[K, V]) Set(k K, v V) {
18 m.Store(k, v)

Callers 2

NewAVRingReaderFunction · 0.45
DisposeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected