MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / newEntry

Function newEntry

pkg/generic_sync/map.go:100–104  ·  view source on GitHub ↗
(i V)

Source from the content-addressed store, hash-verified

98}
99
100func newEntry[V any](i V) *entry[V] {
101 e := &entry[V]{}
102 e.p.Store(&i)
103 return e
104}
105
106// Load returns the value stored in the map for a key, or nil if no
107// value is present.

Callers 2

StoreMethod · 0.85
LoadOrStoreMethod · 0.85

Calls 1

StoreMethod · 0.45

Tested by

no test coverage detected