func (p *poolZ) Borrowed() (count int32) {
	p.workers.Range(func(key, value interface{}) bool {
		if used, ok := value.(bool); ok && used {
			count++
		}
		return true
	})
	// count = atomic.LoadInt32(&p.capacity)
	return
}
// Borrowed catches a count of those busy workers.
// Borrowed does traverse the whole list to find out
// which workers are busy. It's a slower-speed implementation
Borrowed catches a count of those busy workers.
Borrowed does traverse the whole list to find out
which workers are busy. It's a slower-speed implementation
// Borrowed catches a count of those busy workers . // Borrowed does traverse the whole list to find out // which workers are busy . It ' s a slower - speed implementation
func (p *poolZ) Borrowed() (count int32) {
	p.workers.Range(func(key, value interface{}) bool {
		if used, ok := value.(bool); ok && used {
			count++
		}
		return true
	})
	return
}
func ( p * poolZ ) Borrowed ( ) ( count int32 ) { p . workers . Range ( func ( key , value interface { } ) bool { if used , ok := value . ( bool ) ; ok && used { count ++ } return true } ) return }
Borrowed catches a count of those busy workers.
Borrowed catches a count of those busy workers .
// count = atomic.LoadInt32(&p.capacity)