GearmanTask::sendData

(PECL gearman <= 0.5.0)

GearmanTask::sendDataSend data for a task (deprecated)

說(shuō)明

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

警告

此函數(shù)是實(shí)驗(yàn)性的。此函數(shù)的表象,包括名稱(chēng)及其相關(guān)文檔都可能在未來(lái)的 PHP 發(fā)布版本中未通知就被修改。使用本函數(shù)風(fēng)險(xiǎn)自擔(dān)。

參數(shù)

data

Data to send to the worker.

返回值

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

參見(jiàn)