We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前Server->taskwait是阻塞等待 TaskWorker返回数据的。在协程版本中,可以基于协程调度来实现非阻塞。
Server->taskwait
TaskWorker
enable_coroutine => false
task
yield
task_id
key
onFinish
The text was updated successfully, but these errors were encountered:
No branches or pull requests
现状
目前
Server->taskwait
是阻塞等待TaskWorker
返回数据的。在协程版本中,可以基于协程调度来实现非阻塞。enable_coroutine => false
的情况,这种情况下无法使用协程调度器实现
task
时yield
让出当前协程,使用task_id
作为key
保存协程上下文onFinish
时,根据task_id
找到对应的协程,并恢复执行The text was updated successfully, but these errors were encountered: