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

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

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

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

		return array_shift($this->results[$bucket]);
	}
public function get_result ( $ bucket = self :: DEFAULT_BUCKET ) { // check for additional results $ this -> post_results ( $ bucket ) ; if ( ! $ this -> has_result ( $ bucket ) ) { return null ; } return array_shift ( $ this -> results [ $ bucket ] ) ; }
Returns the first result available from the bucket.  This will run
a non-blocking poll of the children for updated results.

@param string $bucket The bucket to check.
@return mixed The data retrieved from a child process on the buckets
Returns the first result available from the bucket . This will run a non - blocking poll of the children for updated results .