Lines Matching full:timeout

46     // Timeout Precision in seconds.
62 private $timeout; variable in Symfony\\Component\\Process\\Process
140 * @param int|float|null $timeout The timeout in seconds or null to disable
144 …truct(array $command, ?string $cwd = null, ?array $env = null, $input = null, ?float $timeout = 60) argument
165 $this->setTimeout($timeout);
187 * @param int|float|null $timeout The timeout in seconds or null to disable
193 …line(string $command, ?string $cwd = null, ?array $env = null, $input = null, ?float $timeout = 60) argument
195 $process = new static([], $cwd, $env, $input, $timeout);
457 * @throws ProcessTimedOutException In case the timeout was reached
528 * @throws LogicException if an idle timeout is set
536 throw new LogicException('Output cannot be disabled while an idle timeout is set.');
913 * @param int|float $timeout The timeout in seconds
914 …* @param int|null $signal A POSIX signal to send in case the process has not stop at timeout, de…
918 public function stop(float $timeout = 10, ?int $signal = null) argument
920 $timeoutMicro = microtime(true) + $timeout;
994 * Gets the process timeout in seconds (max. runtime).
1000 return $this->timeout;
1004 * Gets the process idle timeout in seconds (max. time since last output).
1014 * Sets the process timeout (max. runtime) in seconds.
1016 * To disable the timeout, set this value to null.
1020 * @throws InvalidArgumentException if the timeout is negative
1022 public function setTimeout(?float $timeout) argument
1024 $this->timeout = $this->validateTimeout($timeout);
1030 * Sets the process idle timeout (max. time since last output) in seconds.
1032 * To disable the timeout, set this value to null.
1037 * @throws InvalidArgumentException if the timeout is negative
1039 public function setIdleTimeout(?float $timeout) argument
1041 if (null !== $timeout && $this->outputDisabled) {
1042 throw new LogicException('Idle timeout cannot be set while the output is disabled.');
1045 $this->idleTimeout = $this->validateTimeout($timeout);
1189 * Performs a check between the timeout definition and the time the process started.
1192 * trigger this method regularly to ensure the process timeout
1194 * @throws ProcessTimedOutException In case the timeout was reached
1202 if (null !== $this->timeout && $this->timeout < microtime(true) - $this->starttime) {
1414 * Validates and returns the filtered timeout.
1416 * @throws InvalidArgumentException if the given timeout is a negative number
1418 private function validateTimeout(?float $timeout): ?float argument
1420 $timeout = (float) $timeout;
1422 if (0.0 === $timeout) {
1423 $timeout = null;
1424 } elseif ($timeout < 0) {
1425 …throw new InvalidArgumentException('The timeout value must be a valid positive integer or float nu…
1428 return $timeout;