php8.5
Home/ Manual/ parallel / channel/ parallel\Channel::__construct

parallel\Channel::__construct

PHP function Edit on GitHub ✎

(1.1.0)

Channel Construction

Description

parallel\Channel::__construct()

Shall make an anonymous unbuffered channel

parallel\Channel::__construct(int $capacity)

Shall make an anonymous buffered channel with the given capacity

Parameters

capacity

May be Channel::Infinite or a positive integer

Source: reference/parallel/parallel/channel/construct.xml · from the official PHP manual (php/doc-en)