pecl/parallel
最新稳定版本:v1.2.9
Composer 安装命令:
pie install pecl/parallel
包简介
A succinct parallel concurrency API for PHP 8
README 文档
README
A succinct parallel concurrency API for PHP 8
Documentation
Documentation can be found in the PHP manual: https://php.net/parallel
Requirements and Installation
See INSTALL.md
Hello World
<?php $runtime = new \parallel\Runtime(); $future = $runtime->run(function(){ for ($i = 0; $i < 500; $i++) echo "*"; return "easy"; }); for ($i = 0; $i < 500; $i++) { echo "."; } printf("\nUsing \\parallel\\Runtime is %s\n", $future->value());
This may output something like (output abbreviated):
.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*
Using \parallel\Runtime is easy
Development
See CONTRIBUTING.md for guidelines on contribution and development (and debugging).
统计信息
- 总下载量: 504
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1575
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: PHP-3.01
- 更新时间: 2024-12-13