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

Breadcrumb

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

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\Process

Code

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;
}
RSS feed
Powered by Drupal