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

Method MaxGoroutines

pool/pool.go:83–85  ·  view source on GitHub ↗

MaxGoroutines returns the maximum size of the pool.

()

Source from the content-addressed store, hash-verified

81
82// MaxGoroutines returns the maximum size of the pool.
83func (p *Pool) MaxGoroutines() int {
84 return p.limiter.limit()
85}
86
87// WithMaxGoroutines limits the number of goroutines in a pool.
88// Defaults to unlimited. Panics if n < 1.

Callers 2

TestPoolFunction · 0.45
initMethod · 0.45

Calls 1

limitMethod · 0.80

Tested by 1

TestPoolFunction · 0.36