grpc-java/stub/src
Eric Anderson 0cd56c29d6
stub: Only throw on cancellation for streaming responses
Unary are far more common than streaming, and we're throwing for unary even
though it doesn't help the service. Let's stop doing that. We also stop
throwing in onComplete() for all cases, because it doesn't help any service;
it doesn't stop the service's processing and isn't even all that informative
since the cancellation can happen even after onComplete() is called.
2020-10-01 13:10:30 -07:00
..
main/java/io/grpc/stub stub: Only throw on cancellation for streaming responses 2020-10-01 13:10:30 -07:00
test/java/io/grpc/stub stub: Only throw on cancellation for streaming responses 2020-10-01 13:10:30 -07:00