Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<GearmanWorker::setTimeoutGearmanWorker::unregister>
^GearmanWorkerLast updated: Mon, 26 Oct 2026

GearmanWorker::timeout

(PECL gearman >= 0.6.0)

GearmanWorker::timeout — Get socket I/O activity timeout

Description

public function GearmanWorker::timeout(): int

Returns the current time to wait, in milliseconds, for socket I/O activity.

Parameters

This function has no parameters.

Return Values

A time period in milliseconds. A negative value indicates an infinite timeout.

See Also


<GearmanWorker::setTimeoutGearmanWorker::unregister>
^GearmanWorkerLast updated: Mon, 26 Oct 2026