|
GearmanWorker::setTimeoutSet socket I/O activity timeout 説明
public true GearmanWorker::setTimeout(int
$timeout )Sets the interval of time to wait for socket I/O activity. パラメータ
戻り値
常に 例
例1 A simple worker with a 5 second timeout
<?php Running the worker with no submitted jobs will generate output that looks like the following: Starting Waiting for job... Timeout. Waiting for next job... Timeout. Waiting for next job... Timeout. Waiting for next job... 参考
|