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

Method panicIfInitialized

pool/pool.go:109–113  ·  view source on GitHub ↗

panicIfInitialized will trigger a panic if a configuration method is called after the pool has started any goroutines for the first time. In the case that new settings are needed, a new pool should be created.

()

Source from the content-addressed store, hash-verified

107// after the pool has started any goroutines for the first time. In the case that
108// new settings are needed, a new pool should be created.
109func (p *Pool) panicIfInitialized() {
110 if p.tasks != nil {
111 panic("pool can not be reconfigured after calling Go() for the first time")
112 }
113}
114
115// WithErrors converts the pool to an ErrorPool so the submitted tasks can
116// return errors.

Callers 4

WithMaxGoroutinesMethod · 0.95
WithErrorsMethod · 0.95
derefMethod · 0.95
WithContextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected