Hi,
while implementing the server side of a server-streaming call (rpc TimeChanged(TimeChangedRequest) returns (stream TimeChangedResponse)),
I noticed that IAsyncStreamWriter<T>.WriteAsync(T message) sometimes throws an InvalidOperationException with the message "Already finished". This seems to happen after the client canceled the stream.
This exception is even thrown while the Task that handles the stream request on the server is still active.
Is it somehow possible to avoid this exception. Like there is int.Parse with Exceptions and int.TryParse without it?