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

Method init

pool/pool.go:100–104  ·  view source on GitHub ↗

init ensures that the pool is initialized before use. This makes the zero value of the pool usable.

()

Source from the content-addressed store, hash-verified

98// init ensures that the pool is initialized before use. This makes the
99// zero value of the pool usable.
100func (p *Pool) init() {
101 p.initOnce.Do(func() {
102 p.tasks = make(chan func())
103 })
104}
105
106// panicIfInitialized will trigger a panic if a configuration method is called
107// after the pool has started any goroutines for the first time. In the case that

Callers 2

GoMethod · 0.95
WaitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected