MaxGoroutines returns the maximum size of the pool.
()
| 81 | |
| 82 | // MaxGoroutines returns the maximum size of the pool. |
| 83 | func (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. |