MCPcopy Create free account
hub / github.com/eth-easl/dirigent / NewAtomicMap

Function NewAtomicMap

pkg/atomic_map/atomic_map.go:37–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func NewAtomicMap[K, V any]() *AtomicMap[K, V] {
38 return &AtomicMap[K, V]{}
39}
40
41func (c *AtomicMap[K, V]) Find(key K) bool {
42 _, ok := c.Load(key)

Callers 10

NewSandboxManagerFunction · 0.92
TestNewAtomicMapStringFunction · 0.85
TestAtomicMap_AtomicGetFunction · 0.85
TestAtomicMap_CopyOnGetFunction · 0.85
TestAtomicMap_AtomicAddFunction · 0.85
TestAtomicMap_AtomicLennFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestNewAtomicMapStringFunction · 0.68
TestAtomicMap_AtomicGetFunction · 0.68
TestAtomicMap_CopyOnGetFunction · 0.68
TestAtomicMap_AtomicAddFunction · 0.68
TestAtomicMap_AtomicLennFunction · 0.68