【文件属性】:
文件名称:ext-fiber:PHP光纤扩展
文件大小:117KB
文件格式:ZIP
更新时间:2021-04-11 12:32:32
Assembly
光纤延长
使用本机C光纤PHP光纤实现。
要求
PHP 8+
安装
该扩展的安装与其他PHP扩展类似。
git clone https://github.com/amphp/ext-fiber
cd ext-fiber
phpize
./configure
make
make test
make install
原料药
通过创建Fiber类的实例来制作Fiber 。
final class Fiber
{
/**
* @param callable $callback Function to invoke when starting the fiber.
*/
public function __construct ( callable $ callback ) {}
/**
* Starts execution of the fi