I have multiple ClientAsyncReaderWriters using the same CompletionQueue. How properly shutdown it once I want to destroy instance of my class? Is it enough to call WritesDone on each stream and then break the CompletionQueue loop? Should I call Shutdown on CQ? I have found a lot of server side examples where the Shutdown is called on CQ but never saw it in client code. Its quite puzzling.
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/b59dade1-289e-4fb6-8578-13fcc65e0e1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is what I’ve seen (and done in my code) on the net (particularly in this group), however the Next never returns. Interestingly, I didn’t find any example shutting down CQ this way, just to see it working. Any idea how to analyze why it would happen? Any type of logging or something that can shed some light why Next never returns?
BTW, in what context I can call Shutdown method? Can I call it in main thread to stop the `Next`ing loop which runs in another thread?
Sent from Mail for Windows 10