MCPcopy
hub / github.com/go-sql-driver/mysql / Set

Method Set

utils.go:767–769  ·  view source on GitHub ↗

Set sets the error value regardless of the previous value. The value must not be nil

(value error)

Source from the content-addressed store, hash-verified

765// Set sets the error value regardless of the previous value.
766// The value must not be nil
767func (ae *atomicError) Set(value error) {
768 ae.value.Store(value)
769}
770
771// Value returns the current error value
772func (ae *atomicError) Value() error {

Callers 3

TestAtomicErrorFunction · 0.95
CloneMethod · 0.80
cancelMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestAtomicErrorFunction · 0.76