-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Calling from tokio context #520
Comments
Yes, it's OK to do so. |
Thank you. When i read other issues ,it confuse me a little bit. So what is the problem described in #338 |
It's unsafe to mix using different runtime. The problem is that tokio expects using its own executor for their futures. You should not spawn futures calling tokio functions into grpcio by |
It's best to bridge them by using some channels and spawn the futures generated by grpcio into grpcio reactor for best performance. |
Hi,
Sorry for if the question is too newbie but is it ok to call functions from a tokio context? like below (tx is streamingcallsink and rx is Clientcstreamreceiver)
Thanks in advance...
The text was updated successfully, but these errors were encountered: