= 0.5.0)GearmanClient::setFailCallback — Set callback for job failure說明public GearmanClient::setFailCallb">

GearmanClient::setFailCallback

(PECL gearman >= 0.5.0)

GearmanClient::setFailCallbackSet callback for job failure

說明

public GearmanClient::setFailCallback(callable $callback): bool

Sets the callback function to be used when a task does not complete successfully. The function should accept a single argument, a GearmanTask object.

參數(shù)

callback

A function to call

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。

參見