src/ProcessPoolRequest.php
/**
	 * Check if there's data in a pipe
	 *
	 * @param int $pipeIdx Pipe index
	 * @param int $waitSec Number of seconds to wait
	 * @param int $waitUsec Number of microseconds to wait in addition to seconds
	 *
	 * @return bool True if there's data
	 * @throws ProcessPoolException
	 */
Check if there's data in a pipe
@param int $pipeIdx Pipe index
@param int $waitSec Number of seconds to wait
@param int $waitUsec Number of microseconds to wait in addition to seconds

@return bool True if there's data
@throws ProcessPoolException
Check if there ' s data in a pipe @param int $pipeIdx Pipe index @param int $waitSec Number of seconds to wait @param int $waitUsec Number of microseconds to wait in addition to seconds @return bool True if there ' s data @throws ProcessPoolException
private function _hasPipeData(int $pipeIdx, int $waitSec = 0, int $waitUsec = 0): string
	{
		if ($this->process === null)
			throw new ProcessPoolResourceFailedException();
		$read = [$this->pipes[$pipeIdx]];
		$write = [];
		$except = [];
		return stream_select($read, $write, $except, $waitSec, $waitUsec) > 0;
	}
private function _hasPipeData ( int $ pipeIdx , int $ waitSec = 0 , int $ waitUsec = 0 ) : string { if ( $ this -> process === null ) throw new ProcessPoolResourceFailedException ( ) ; $ read = [ $ this -> pipes [ $ pipeIdx ] ] ; $ write = [ ] ; $ except = [ ] ; return stream_select ( $ read , $ write , $ except , $ waitSec , $ waitUsec ) > 0 ; }
Check if there's data in a pipe
 @param int $pipeIdx Pipe index
 @param int $waitSec Number of seconds to wait
 @param int $waitUsec Number of microseconds to wait in addition to seconds
Check if there ' s data in a pipe @param int $pipeIdx Pipe index @param int $waitSec Number of seconds to wait @param int $waitUsec Number of microseconds to wait in addition to seconds