function Process::setTimeout
Same name in this branch
- 11.1.x vendor/php-tuf/composer-stager/src/Internal/Process/Service/Process.php \PhpTuf\ComposerStager\Internal\Process\Service\Process::setTimeout()
Sets the process timeout (max. runtime) in seconds.
To disable the timeout, set this value to null.
Return value
$this
Throws
InvalidArgumentException if the timeout is negative
1 call to Process::setTimeout()
- Process::__construct in vendor/
symfony/ process/ Process.php
File
-
vendor/
symfony/ process/ Process.php, line 1007
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function setTimeout(?float $timeout) : static {
$this->timeout = $this->validateTimeout($timeout);
return $this;
}