admin管理员组文章数量:1377570
I'm using Laravel Octane with OpenSwoole, and I'm trying to run nested Octane::concurrently() calls. However, I keep getting this error:
OpenSwoole\Server::taskWaitMulti(): taskWaitMulti method can only be used in the worker process
Here’s the code that produces the error:
Octane::concurrently([
'outer_concurrency' => function () {
return Octane::concurrently([
'inner_result' => function () {
return 1;
},
]);
},
]);
It seems like Octane is trying to execute taskWaitMulti() outside a worker process. Is nested concurrency not supported in OpenSwoole, or am I missing something?
Any insights or workarounds would be appreciated`
本文标签: phpLaravel OctaneOpenSwoole taskWaitMulti error in concurrently()Stack Overflow
版权声明:本文标题:php - Laravel Octane - OpenSwoole taskWaitMulti error in concurrently() - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744405622a2604691.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论