function Process::setIdleTimeout
Sets the process idle timeout (max. time since last output) in seconds.
To disable the timeout, set this value to null.
Return value
$this
Throws
LogicException if the output is disabled
InvalidArgumentException if the timeout is negative
File
-
vendor/
symfony/ process/ Process.php, line 1024
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function setIdleTimeout(?float $timeout) : static {
if (null !== $timeout && $this->outputDisabled) {
throw new LogicException('Idle timeout cannot be set while the output is disabled.');
}
$this->idleTimeout = $this->validateTimeout($timeout);
return $this;
}