MCPcopy Index your code
hub / github.com/sourcegraph/conc / deref

Method deref

pool/error_pool.go:74–79  ·  view source on GitHub ↗

deref is a helper that creates a shallow copy of the pool with the same settings. We don't want to just dereference the pointer because that makes the copylock lint angry.

()

Source from the content-addressed store, hash-verified

72// settings. We don't want to just dereference the pointer because that makes
73// the copylock lint angry.
74func (p *ErrorPool) deref() ErrorPool {
75 return ErrorPool{
76 pool: p.pool.deref(),
77 onlyFirstError: p.onlyFirstError,
78 }
79}
80
81func (p *ErrorPool) panicIfInitialized() {
82 p.pool.panicIfInitialized()

Callers 1

WithContextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected