« Swoole\Channel
Swoole\Channel::__destruct »

Swoole\Channel::__construct

(PECL swoole >= 1.9.0)

Swoole\Channel::__construct — Construct a Swoole Channel

説明

public function Swoole\Channel::__construct(string $size)

Swoole channel is memory data structure works like Chan in Golang, implemented based on shared memory and mutex locks. It can be used as high performance message queue in memory. Construct a swoole channel with a fixed size. The minimum size of a swoole channel is 64KB. Exceptions will be thrown if there is not enough memory.

パラメータ

size

The size of the Swoole channel.

関連キーワード:
Swoole   Channel   size   Construct   channel   memory   construct   swoole   destruct   structure   works   like   Chan   Golang   implemented   based   shared   mutex   locks   used   high   performance   message queue   fixed   minimum
関連する関数・ページ:
class.swoole-channel   swoole-channel.destruct   swoole-channel.pop   swoole-channel.stats   swoole-channel.push   parallel-channel.construct