GearmanTask::recvData

(PECL gearman >= 0.5.0)

GearmanTask::recvDataRead work or result data into a buffer for a task

說(shuō)明

public GearmanTask::recvData(int $data_len): array

警告

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

參數(shù)

data_len

Length of data to be read.

返回值

An array whose first element is the length of data read and the second is the data buffer. Returns false if the read failed.

參見(jiàn)