PHP Class Jenner\SimpleFork\Pool

Inheritance: extends AbstractPool
Mostra file Open project: huyanping/simple-fork-php Class Usage Examples

Public Methods

Method Description
execute ( Process $process, null | string $name = null ) : integer add a process
getProcessByName ( string $name ) : Process | null get process by name

Method Details

execute() public method

add a process
public execute ( Process $process, null | string $name = null ) : integer
$process Process
$name null | string process name
return integer

getProcessByName() public method

get process by name
public getProcessByName ( string $name ) : Process | null
$name string process name
return Process | null