= 0.5.0)GearmanClient::setExceptionCallback — Set a callback for worker exceptions說明public GearmanCl">

GearmanClient::setExceptionCallback

(PECL gearman >= 0.5.0)

GearmanClient::setExceptionCallbackSet a callback for worker exceptions

說明

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

Specifies a function to call when a worker for a task sends an exception.

參數(shù)

callback

Function to call when the worker throws an exception

返回值

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

參見