public function waitForAll($sleepTime = 1)
    {
        while (!empty($this->runningJobs)) {
            $this->proccess();
            $this->sleep($sleepTime);
        }
    }
public function waitForAll($sleepTime = 1)
    {
        while (!empty($this->runningJobs)) {
            $this->proccess();
            $this->sleep($sleepTime);
        }
    }
public function waitForAll ( $ sleepTime = 1 ) { while ( ! empty ( $ this -> runningJobs ) ) { $ this -> proccess ( ) ; $ this -> sleep ( $ sleepTime ) ; } }
Wait for all the jobs to be terminated.

@param int $sleepTime Time to sleep.
Wait for all the jobs to be terminated .