update : 2015.11.03
php.shukuma.com

검색:
 
 
Set a callback for collecting task status

GearmanClient::setStatusCallback

(PECL gearman >= 0.5.0)

GearmanClient::setStatusCallbackSet a callback for collecting task status

설명

public bool GearmanClient::setStatusCallback ( callable $callback )

Sets a callback function used for getting updated status information from a worker. The function should accept a single argument, a GearmanTask object.

인수

callback

A function to call

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

참고