PHP - Manual: parallel\Channel::make
2024-12-22
(0.9.0)
parallel\Channel::make — Access
$name
): ChannelShall make an unbuffered channel with the given name
$name
, int $capacity
): ChannelShall 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
Shall throw parallel\Channel\Error\Existence if channel already exists.
官方地址:https://www.php.net/manual/en/parallel-channel.make.php