CakeFest 2024: The Official CakePHP Conference

GearmanTask::sendWorkload

(PECL gearman >= 0.6.0)

GearmanTask::sendWorkloadSend data for a task

说明

public GearmanTask::sendWorkload(string $data): int|false

警告

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

参数

data

Data to send to the worker.

返回值

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

参见

add a note

User Contributed Notes

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