| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GearmanWorker::setTimeout(PECL gearman >= 0.6.0) GearmanWorker::setTimeout — Set socket I/O activity timeout 説明
public bool GearmanWorker::setTimeout
( int
$timeout
)Sets the interval of time to wait for socket I/O activity. パラメータ
返り値
Always returns 例
例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... |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「GearmanWorker::setTimeout - Set socket I/O activity timeout」をGoogle検索
|