RequestOptions::setTimeout( float|null $timeout ): void

In this article

Sets the request timeout in seconds.

Parameters

$timeoutfloat|nullrequired
Timeout in seconds.

Return

void

Source

public function setTimeout(?float $timeout): void
{
    $this->validateTimeout($timeout, self::KEY_TIMEOUT);
    $this->timeout = $timeout;
}

Changelog

VersionDescription
0.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.