MCPcopy Index your code
hub / github.com/celzero/firestack / safeStore

Method safeStore

intra/core/volatile.go:63–80  ·  view source on GitHub ↗

safeStore stores new in a, iff old & new are of the same concrete type. If old & new are not of the same concrete type, it creates a Volatile with new. If new is nil, sets a to NewZeroVolatile[T]. If a is nil, does nothing. This func is not atomic.

(old, new T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

StoreMethod · 0.95
TangoMethod · 0.95

Calls 4

IsNilFunction · 0.85
TypeEqFunction · 0.85
loceqFunction · 0.85
StoreMethod · 0.45

Tested by

no test coverage detected