You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing an async app (using Trio). I have an Application class with various async "handle_x_event" methods that get scheduled in the Trio nursery. Some such events need to trigger a gRPC call.
Currently, this only works if I create the channel and stub right when I need to use it:
If I try to create the rpc_channel or the stub in my main function and pass it in to the Application class for use, then the await stub.UpdateDisplay(req) call never returns. There's no error message; that task just silently waits forever, and the server does not receive my request.
I want a long-lasting client connection. How can I set one up?
The text was updated successfully, but these errors were encountered:
I am writing an async app (using Trio). I have an Application class with various async "handle_x_event" methods that get scheduled in the Trio nursery. Some such events need to trigger a gRPC call.
Currently, this only works if I create the channel and stub right when I need to use it:
If I try to create the rpc_channel or the stub in my main function and pass it in to the Application class for use, then the
await stub.UpdateDisplay(req)
call never returns. There's no error message; that task just silently waits forever, and the server does not receive my request.I want a long-lasting client connection. How can I set one up?
The text was updated successfully, but these errors were encountered: