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

Method Swap

intra/core/volatile.go:105–122  ·  view source on GitHub ↗

Swap assigns new and returns the old value, atomically. If a is nil, it returns zero value. If new is nil, returns old value; and sets a to NewZeroVolatile[T]. If old & new are not of the same concrete type, it panics.

(new T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

safeLoadMethod · 0.95
IsNilFunction · 0.85
loceqFunction · 0.85
SwapMethod · 0.65

Tested by

no test coverage detected