func (p *pool) clear() {
	if p.monitor != nil {
		p.monitor.Event(&event.PoolEvent{
			Type:    event.PoolCleared,
			Address: p.address.String(),
		})
	}

	p.drain()
	p.conns.Maintain()
}
// clear clears the pool by incrementing the generation and then maintaining the pool
clear clears the pool by incrementing the generation and then maintaining the pool
// clear clears the pool by incrementing the generation and then maintaining the pool
func (p *pool) clear() {
	if p.monitor != nil {
		p.monitor.Event(&event.PoolEvent{
			Type:    event.PoolCleared,
			Address: p.address.String(),
		})
	}
	p.drain()
	p.conns.Maintain()
}
func ( p * pool ) clear ( ) { if p . monitor != nil { p . monitor . Event ( & event . PoolEvent { Type : event . PoolCleared , Address : p . address . String ( ) , } ) } p . drain ( ) p . conns . Maintain ( ) }
clear clears the pool by incrementing the generation and then maintaining the pool
clear clears the pool by incrementing the generation and then maintaining the pool