Php/docs/gearmanclient.settimeout

来自菜鸟教程
跳转至:导航、​搜索

GearmanClient::setTimeout

(PECL gearman >= 0.6.0)

GearmanClient::setTimeoutSet socket I/O activity timeout


说明

public GearmanClient::setTimeout ( int $timeout ) : bool

Sets the timeout for socket I/O activity.


参数

timeout
An interval of time in milliseconds


返回值

Always returns true.