GearmanClient::setDataCallback

Callback function when there is a data packet for a task

Beschreibung

public bool GearmanClient::setDataCallback ( callable $callback )

Sets the callback function for accepting data packets for a task. The callback function should take a single argument, a GearmanTask object.

Parameter-Liste

callback

A function or method to call

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Siehe auch

  • GearmanClient::setCompleteCallback
  • GearmanClient::setCreatedCallback
  • GearmanClient::setExceptionCallback
  • GearmanClient::setFailCallback
  • GearmanClient::setStatusCallback
  • GearmanClient::setWarningCallback
  • GearmanClient::setWorkloadCallback