protected function stopWorkerPool(string $poolName) : bool
    {
        if (empty($this->processes[$poolName])) {
            return true;
        }
        foreach ($this->processes[$poolName] as $process) {
            /** @var Process $process */
            $process->terminate();
        }
        return true;
    }
protected function stopWorkerPool(string $poolName) : bool
    {
        if (empty($this->processes[$poolName])) {
            return true;
        }
        foreach ($this->processes[$poolName] as $process) {
            /** @var Process $process */
            $process->terminate();
        }
        return true;
    }
protected function stopWorkerPool ( string $ poolName ) : bool { if ( empty ( $ this -> processes [ $ poolName ] ) ) { return true ; } foreach ( $ this -> processes [ $ poolName ] as $ process ) { /** @var Process $process */ $ process -> terminate ( ) ; } return true ; }
Terminates all child processes of given pool.

@param string $poolName
@return bool
Terminates all child processes of given pool .