src/AbstractPool.php
public function removeProcessByName($name)
    {
        foreach ($this->processes as $key => $process) {
            if ($process->name() == $name) {
                if ($process->isRunning()) {
                    throw new \RuntimeException("can not remove a running process");
                }
                unset($this->processes[$key]);
            }
        }
    }
public function removeProcessByName($name)
    {
        foreach ($this->processes as $key => $process) {
            if ($process->name() == $name) {
                if ($process->isRunning()) {
                    throw new \RuntimeException("can not remove a running process");
                }
                unset($this->processes[$key]);
            }
        }
    }
public function removeProcessByName ( $ name ) { foreach ( $ this -> processes as $ key => $ process ) { if ( $ process -> name ( ) == $ name ) { if ( $ process -> isRunning ( ) ) { throw new \ RuntimeException ( "can not remove a running process" ) ; } unset ( $ this -> processes [ $ key ] ) ; } } }
remove process by name

@param string $name process name
@throws \RuntimeException
remove process by name