« parallel\Channel::__construct
parallel\Channel::open »

parallel\Channel::make

(0.9.0)

parallel\Channel::make — Access

説明

public function parallel\Channel::make(string $name): Channel

Shall make an unbuffered channel with the given name

public function parallel\Channel::make(string $name, int $capacity): Channel

Shall make a buffered channel with the given name and capacity

パラメータ

name

The name of the channel.

capacity

May be Channel::Infinite or a positive integer

Exceptions

警告

Shall throw parallel\Channel\Error\Existence if channel already exists.

関連キーワード:
Channel   parallel   make   channel   Access   capacity   given   construct   unbuffered   buffered   Infinite   positive   integer   Exceptions   throw   Existence   already   exists
関連する関数・ページ:
parallel-channel.open   parallel-channel.construct   parallel-channel.close   parallel-channel.send   parallel-channel.recv   class.parallel-channel