php8.5
Home/ Manual/ gearman / gearmanclient/ GearmanClient::setTimeout

GearmanClient::setTimeout

PHP function Edit on GitHub ✎

(PECL gearman >= 0.6.0)

Set socket I/O activity timeout

Description

GearmanClient::setTimeout(int $timeout): bool

Sets the timeout for socket I/O activity.

Parameters

timeout

An interval of time in milliseconds

Return Values

Always returns true.

Source: reference/gearman/gearmanclient/settimeout.xml · from the official PHP manual (php/doc-en)