« Swoole\Channel::pop
Swoole\Channel::stats »

Swoole\Channel::push

(PECL swoole >= 1.9.0)

Swoole\Channel::push — Write and push data into Swoole channel.

説明

public function Swoole\Channel::push(string $data): bool

Data can be any non-empty PHP variable, the variable will be serialized if it is not string type.

If size of the data is more than 8KB, swoole channel will use temp files storage.

The function will return true if the write operation is succeeded, or return false if there is not enough space.

パラメータ

data

The data to push into the Swoole channel.

戻り値

Whether the data is pushed into the Swoole channel.

関連キーワード:
Swoole   push   channel   Channel   Write   swoole   variable   return   stats   empty   serialized   type   size   more   temp   files   storage   write   operation   succeeded   there   enough   space   Whether   pushed
関連する関数・ページ:
class.swoole-channel   swoole-channel.pop   swoole-channel.destruct   swoole-channel.stats   swoole-channel.construct   swoole-process.push