hyperf / hyperf/gotask

gotask是不支持协程风格吗?

Open
#70 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
29
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/hyperf/gotask/assets/8308381/eef3d990-5948-4e11-8295-c8d8c04b97b3)
服务启动之后一直报 on null 的错误,我看了一下这部分process的源码。
只有当服务不是协程的时候,才会new SwooleProcess,不然process就肯定是null。
![image](https://github.com/hyperf/gotask/assets/8308381/3d3589c4-ce90-4525-8c32-6545db009599)
但因为 while(ture)
![image](https://github.com/hyperf/gotask/assets/8308381/af92f80f-a04d-46c9-98fd-ef7b5cf35bbb)
就会一直去跑handle(),然后一直拿不到process,然后一直log错误。
如果在server那边取消协程风格就能正常运行了。

所以是hyperf/gotask是不支持协程风格吗?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.