func (p *Pool) WorkerIDs() []string {
	p.mux.Lock()
	defer p.mux.Unlock()
	var ids []string
	for _, w := range p.workers {
		ids = append(ids, w.id)
	}
	return ids
}
// WorkerIDs returns all worker ids.
WorkerIDs returns all worker ids.
// WorkerIDs returns all worker ids .
func (p *Pool) WorkerIDs() []string {
	p.mux.Lock()
	defer p.mux.Unlock()
	var ids []string
	for _, w := range p.workers {
		ids = append(ids, w.id)
	}
	return ids
}
func ( p * Pool ) WorkerIDs ( ) [ ] string { p . mux . Lock ( ) defer p . mux . Unlock ( ) var ids [ ] string for _ , w := range p . workers { ids = append ( ids , w . id ) } return ids }
WorkerIDs returns all worker ids.
WorkerIDs returns all worker ids .