src/Neutrino/Process/Process.php
public function exec($timeout = null)
    {
        try {
            $this->start();
            $this->wait($timeout, 500);
            if ($this->isRunning()) {
                throw new Timeout;
            }
        } finally {
            $this->close();
        }
    }
public function exec($timeout = null)
    {
        try {
            $this->start();
            $this->wait($timeout, 500);
            if ($this->isRunning()) {
                throw new Timeout;
            }
        } finally {
            $this->close();
        }
    }
Execute a process

@param int|null $timeout in ms

@throws Exception