src/Transport/Protocol/Http/Curl.php
public function flush($max = 10, $options = [])
    {
        $defaults = [
            'selectTimeout'  => 1.0
        ];

        $options += $defaults;

        do {
            $this->select($options['selectTimeout']);
            $this->process($max);
        } while ($this->_running > 0);

        $results = $this->_results;
        $this->_results = [];
        return $results;
    }
public function flush($max = 10, $options = [])
    {
        $defaults = [
            'selectTimeout'  => 1.0
        ];

        $options += $defaults;

        do {
            $this->select($options['selectTimeout']);
            $this->process($max);
        } while ($this->_running > 0);

        $results = $this->_results;
        $this->_results = [];
        return $results;
    }
public function flush ( $ max = 10 , $ options = [ ] ) { $ defaults = [ 'selectTimeout' => 1.0 ] ; $ options += $ defaults ; do { $ this -> select ( $ options [ 'selectTimeout' ] ) ; $ this -> process ( $ max ) ; } while ( $ this -> _running > 0 ) ; $ results = $ this -> _results ; $ this -> _results = [ ] ; return $ results ; }
Runs until all outstanding requests have been completed.

@param  integer $max The number of simultaneous allowed connections.
@return array        The array of responses.
Runs until all outstanding requests have been completed .