Ko\ProcessManager::getProcessCount PHP Method

getProcessCount() public method

Return count of currently running child process.
public getProcessCount ( ) : integer
return integer
    public function getProcessCount()
    {
        return count($this->children);
    }

Usage Example

コード例 #1
0
 public function testCountableInterface()
 {
     $this->manager->fork(function () {
         usleep(5000);
     });
     $this->assertCount(1, $this->manager);
     $this->assertEquals(1, $this->manager->getProcessCount());
 }