Ko\ProcessManager::hasAlive PHP Method

hasAlive() public method

Return TRUE is manager has alive children processes.
public hasAlive ( ) : boolean
return boolean
    public function hasAlive()
    {
        return count($this->children) > 0;
    }

Usage Example

コード例 #1
0
 public function testHasNoAliveAfterWait()
 {
     $this->manager->fork(function () {
         usleep(5000);
     });
     $this->manager->wait();
     $this->assertFalse($this->manager->hasAlive());
 }
All Usage Examples Of Ko\ProcessManager::hasAlive