GearmanTask::sendData

(PECL gearman <= 0.5.0)

GearmanTask::sendDataSend data for a task (deprecated)

说明

public GearmanTask::sendData ( string $data ) : int

Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。

参数

data

Data to send to the worker.

返回值

The length of data sent, or FALSE if the send failed.

参见