public function get_all_results($bucket = self::DEFAULT_BUCKET)
	{
		// check for additional results
		$this->post_results($bucket);

		if (!$this->has_result($bucket))
		{
			return array();
		}

		$results = $this->results[$bucket];
		$this->results[$bucket] = array();

		return $results;
	}
public function get_all_results($bucket = self::DEFAULT_BUCKET)
	{
		// check for additional results
		$this->post_results($bucket);

		if (!$this->has_result($bucket))
		{
			return array();
		}

		$results = $this->results[$bucket];
		$this->results[$bucket] = array();

		return $results;
	}
public function get_all_results ( $ bucket = self :: DEFAULT_BUCKET ) { // check for additional results $ this -> post_results ( $ bucket ) ; if ( ! $ this -> has_result ( $ bucket ) ) { return array ( ) ; } $ results = $ this -> results [ $ bucket ] ; $ this -> results [ $ bucket ] = array ( ) ; return $ results ; }
Returns all the results currently in the results queue.  This will
run a non-blocking poll of the children for updated results.

@param string $bucket The bucket to retrieves results.
@return mixed Array of results from each child that has finished.
Returns all the results currently in the results queue . This will run a non - blocking poll of the children for updated results .