MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / Reset

Method Reset

utils/once.go:45–50  ·  view source on GitHub ↗

Reset make the once object to be initialized once again.

()

Source from the content-addressed store, hash-verified

43
44// Reset make the once object to be initialized once again.
45func (o *Once) Reset() {
46 // directly to slow-path
47 o.m.Lock()
48 defer o.m.Unlock()
49 atomic.StoreUint32(&o.done, 0)
50}

Callers 1

TestOnceFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestOnceFunction · 0.76