PHP 8.3.4 Released!

GearmanClient::setFailCallback

(PECL gearman >= 0.5.0)

GearmanClient::setFailCallbackDéfinit une fonction de rappel à appeler lorsqu'un travail échoue

Description

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

Définit une fonction de rappel à utiliser lorsqu'une tâche échoue. La fonction doit accepter un seul argument, un objet GearmanTask.

Liste de paramètres

function

Une fonction à appeler.

Valeurs de retour

Cette fonction retourne true en cas de succès ou false si une erreur survient.

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top