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

在TestTask.php中为何io切换成同步? #40

Closed
gouchaoer opened this issue Nov 9, 2017 · 5 comments
Closed

在TestTask.php中为何io切换成同步? #40

gouchaoer opened this issue Nov 9, 2017 · 5 comments

Comments

@gouchaoer
Copy link

可以看到redis还是协程的,为何mysql/http切换成了同步阻塞呢?

@stelin
Copy link
Member

stelin commented Nov 10, 2017

https://wiki.swoole.com/wiki/page/163.html
taskWorker只支持同步模式

@gouchaoer
Copy link
Author

建议加上同步阻塞,说成同步会让人误解是协程,还有那个redis的方法有cor会误解

@stelin
Copy link
Member

stelin commented Nov 10, 2017

恩,好的,修正下

@stelin
Copy link
Member

stelin commented Nov 10, 2017

public function corTask($p1, $p2) 这个名字的函数是定义一个协程任务投递的demo,和redis协程没有关系

@whiteCcinn
Copy link
Contributor

欢迎加群一起探讨
QQ:548173319

@stelin stelin closed this as completed Nov 17, 2017
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

3 participants