I have a server side streaming call of sort rpc ListFeatures(Rectangle) returns (stream Feature) {}
. How can I cancel the stream from client side or close the channel cleanly?
I have tried context.TryCancel()
it does the job, but is it the correct way to close a channel or cancel the stream?