Zebra_cURL::_process_paused PHP Method

_process_paused() private method

@return void
private _process_paused ( ) : void
return void
    private function _process_paused()
    {
        // copy all requests to another variable
        $urls = $this->_requests;
        // while there are URLs to process
        while (!empty($urls)) {
            // get from the entire list of requests as many as specified by the "threads" property
            $this->_requests = array_splice($urls, 0, $this->threads, array());
            // process those requests
            $this->_process();
            // wait for as many seconds as specified by the "pause_interval" property
            sleep($this->pause_interval);
        }
    }