MCPcopy Create free account
hub / github.com/bigwhite/experiments / tryLoadOrStore

Method tryLoadOrStore

inside-syncmap/syncmap/sync/map.go:267–292  ·  view source on GitHub ↗

tryLoadOrStore atomically loads or stores a value if the entry is not expunged. If the entry is expunged, tryLoadOrStore leaves the entry unchanged and returns with ok==false.

(i interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

LoadOrStoreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected