Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::setTimeout

Same name in this branch
  1. 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\Process

Code

public function setTimeout(?float $timeout) : static {
    $this->timeout = $this->validateTimeout($timeout);
    return $this;
}
RSS feed
Powered by Drupal