RollingCurl\RollingCurl::prunePendingRequestQueue PHP Method

prunePendingRequestQueue() public method

Beceause the request queue does not shrink during processing (merely traversed), it is sometimes necessary to prune the queue. This method creates a new array starting at the first un-processed request, replaces the old queue and resets counters.
public prunePendingRequestQueue ( ) : RollingCurl
return RollingCurl
    public function prunePendingRequestQueue()
    {
        $this->pendingRequests = $this->getNextPendingRequests(0);
        $this->pendingRequestsPosition = 0;
        return $this;
    }