downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

GearmanClient::setCompleteCallback> <GearmanClient::runTasks
[edit] Last updated: Fri, 17 May 2013

view this page in

GearmanClient::setClientCallback

(PECL gearman <= 0.5.0)

GearmanClient::setClientCallbackDéfinit une fonction de rappel lorsqu'un paquet de données est reçu pour une tâche (obsolète)

Description

public void GearmanClient::setClientCallback ( callable $callback )

Définit une fonction de rappel lorsqu'un paquet de données est reçu pour une tâche. La fonction de rappel prend un seul argument, un objet GearmanTask.

Note:

Cette méthode a été remplacée par la méthode GearmanClient::setDataCallback() depuis la version 0.6.0 de l'extension Gearman.

Liste de paramètres

callback

Une fonction ou une méthode à appeler

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Voir aussi



add a note add a note User Contributed Notes GearmanClient::setClientCallback - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites