Hi.

Let's assume that I can written an asynchronous grpc client that send a 
stream and gets a response. This situation uses `ClientAsyncWriter` class. 
How we can stop sending message in middle of stream? For example, we detect 
a problem with our stream of messages after sending few messages and need 
to stop sending messages. What we can do? because there is no method to 
stop sending data with error. The only way that came to my mind was to 
cancel rpc connection by using `TryCancel` on the context. Is this a 
correct way to handle this situation? or should I use another method?

Best Regards

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/80332503-7512-40e6-9b90-0800a9c50681o%40googlegroups.com.

Reply via email to