自定义进程内有关协程的问题

问题描述 自定义进程内获取协程状态、拉取当前协程,即调用 Coroutine::isCoroutine() 或 Coroutine::getCurrent() 的结果理论上(如有遗漏请指出)应该是取决于进程所使用的驱动。 程序代码或配置 <?php namespace app\process; use Workerman\Coroutine; class Test { public function on...

willvar 发表与 8天前 312 浏览 1 回答
【已解决】隐式将参数标记为可为 null 在 PHP 8.4 中已被弃用

问题描述 在 PHP 8.4 上使用 workerman/http-client 时报错,来自此处的$base参数。 程序代码 use Workerman\Worker; require_once __DIR__ . '/vendor/autoload.php'; $worker = new Worker(); $worker->eventLoop = \Workerman\Events\Fiber::cl...

willvar 发表与 2025-03-06 761 浏览 1 回答

willvar

80
积分
0
获赞数
0
粉丝数
2025-03-06 加入
🔝