Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gotask是不支持协程风格吗? #70

Open
ShaBaoFa opened this issue Feb 22, 2024 · 0 comments
Open

gotask是不支持协程风格吗? #70

ShaBaoFa opened this issue Feb 22, 2024 · 0 comments

Comments

@ShaBaoFa
Copy link

image
服务启动之后一直报 on null 的错误,我看了一下这部分process的源码。
只有当服务不是协程的时候,才会new SwooleProcess,不然process就肯定是null。
image
但因为 while(ture)
image
就会一直去跑handle(),然后一直拿不到process,然后一直log错误。
如果在server那边取消协程风格就能正常运行了。

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant