private function addNextRequests()
    {
        $limit = max($this->getPoolSize() - count($this->waitQueue), 0);
        while ($limit--) {
            if (!$this->addNextRequest()) {
                break;
            }
        }
    }
private function addNextRequests()
    {
        $limit = max($this->getPoolSize() - count($this->waitQueue), 0);
        while ($limit--) {
            if (!$this->addNextRequest()) {
                break;
            }
        }
    }
private function addNextRequests ( ) { $ limit = max ( $ this -> getPoolSize ( ) - count ( $ this -> waitQueue ) , 0 ) ; while ( $ limit -- ) { if ( ! $ this -> addNextRequest ( ) ) { break ; } } }
Add as many requests as possible up to the current pool limit.
Add as many requests as possible up to the current pool limit .