首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
协程Http客户端 在go函数外能否使用
Swoole\Coroutine\Http\Client::__construct(): must be called in the coroutine. 只能在go函数使用Coroutine $test = new test(); var_dump($test->http()); go(function () { $test = new test(); var_dump($test->http()); });
发布于6年前 · 3 次浏览 · 来自
提问
g
gelu
Swoole\Coroutine\Http\Client::__construct(): must be called in the coroutine. 只能在go函数使用Coroutine $test = new test(); var_dump($test->http()); go(function () { $test = new test(); var_dump($test->http()); });
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2019-10-18
t
tom
不能
赞
0
回复