parallel\Channel::make

Access

Description

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

Shall make an unbuffered channel with the given name

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

Shall make a buffered channel with the given name and capacity

Parameters

name

The name of the channel.

capacity

May be Channel::Infinite or a positive integer

Exceptions

Warning

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