略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: parallel\Channel::make

2024-12-22

parallel\Channel::make

(0.9.0)

parallel\Channel::makeAccess

说明

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

Shall make an unbuffered channel with the given name

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

Shall 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

Exceptions

警告

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

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/parallel-channel.make.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3