parallel\Channel::make
PHP function
Edit on GitHub ✎
(0.9.0)
Access
Description
parallel\Channel::make(string $name): Channel
Shall make an unbuffered channel with the given name
parallel\Channel::make(string $name, int $capacity): Channel
Shall make a buffered channel with the given name and capacity
Parameters
nameThe name of the channel.
capacityMay be
Channel::Infiniteor a positive integer
Exceptions
Warning
Shall throw parallel\Channel\Error\Existence if channel already exists.