PHP 8.4.0 RC3 available for testing

parallel\Channel::make

(0.9.0)

parallel\Channel::makeAccès

Description

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

Créer un canal non tamponné avec le nom donné.

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

Créer un canal tamponné avec le nom et la capacité donnés.

Liste de paramètres

name

Le nom du canal.

capacity

Peut être Channel::Infinite ou un entier positif

Exceptions

Avertissement

Lance une parallel\Channel\Error\Existence si le canal existe déjà.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top