IsClosed indicates whether the pool is closed.
()
| 377 | |
| 378 | // IsClosed indicates whether the pool is closed. |
| 379 | func (p *poolCommon) IsClosed() bool { |
| 380 | return atomic.LoadInt32(&p.state) == CLOSED |
| 381 | } |
| 382 | |
| 383 | // Release closes this pool and releases the worker queue. |
| 384 | func (p *poolCommon) Release() { |
no outgoing calls