Ko\ProcessManager::getProcessCount PHP 메소드

getProcessCount() 공개 메소드

Return count of currently running child process.
public getProcessCount ( ) : integer
리턴 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());
 }