src/MultiCurlManager.php
public function waitForSingleRequest(Request $request)
    {
        $this->executeRequest($request);
        while ($this->multiCurl->getStillRunningRequests() > 0
            && $this->multiCurl->getCurrentExecutionCode() === CURLM_OK
            && in_array($request, $this->runningRequests)
        ) {
            $this->multiCurl->select();
            $this->executeMultiCurl();
        }
        return $this;
    }
public function waitForSingleRequest(Request $request)
    {
        $this->executeRequest($request);
        while ($this->multiCurl->getStillRunningRequests() > 0
            && $this->multiCurl->getCurrentExecutionCode() === CURLM_OK
            && in_array($request, $this->runningRequests)
        ) {
            $this->multiCurl->select();
            $this->executeMultiCurl();
        }
        return $this;
    }
public function waitForSingleRequest ( Request $ request ) { $ this -> executeRequest ( $ request ) ; while ( $ this -> multiCurl -> getStillRunningRequests ( ) > 0 && $ this -> multiCurl -> getCurrentExecutionCode ( ) === CURLM_OK && in_array ( $ request , $ this -> runningRequests ) ) { $ this -> multiCurl -> select ( ) ; $ this -> executeMultiCurl ( ) ; } return $ this ; }
Delays the script execution until at least the specified request has been finished.
@param Request $request
@return $this Implementing fluent interface.
Delays the script execution until at least the specified request has been finished .