Status gets the pool status.
()
| 111 | |
| 112 | // Status gets the pool status. |
| 113 | func (p *Pool) Status() PoolStatus { |
| 114 | p.mu.RLock() |
| 115 | defer p.mu.RUnlock() |
| 116 | |
| 117 | return p.status |
| 118 | } |
| 119 | |
| 120 | // SetStatus sets a status to the pool. |
| 121 | func (p *Pool) SetStatus(status PoolStatus) { |
no outgoing calls