update : 2015.11.03
php.shukuma.com검색:
|
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 예제
Example #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... |