From 96a32ed768f7ba8cc23660e6d64ad08a7e6790db Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Thu, 7 May 2020 18:41:22 -0700 Subject: [PATCH] core/doc: clarify when ClientCall.cancel() can be called. The original javadoc may be misunderstood as "one must call halfClose() before calling cancel()". --- api/src/main/java/io/grpc/ClientCall.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/io/grpc/ClientCall.java b/api/src/main/java/io/grpc/ClientCall.java index 234678618e..b66924d410 100644 --- a/api/src/main/java/io/grpc/ClientCall.java +++ b/api/src/main/java/io/grpc/ClientCall.java @@ -205,8 +205,8 @@ public abstract class ClientCall { /** * Prevent any further processing for this {@code ClientCall}. No further messages may be sent or * will be received. The server is informed of cancellations, but may not stop processing the - * call. Cancellation is permitted if previously {@link #halfClose}d. Cancelling an already {@code - * cancel()}ed {@code ClientCall} has no effect. + * call. Cancellation is permitted even if previously {@link #halfClose}d. Cancelling an already + * {@code cancel()}ed {@code ClientCall} has no effect. * *

No other methods on this class can be called after this method has been called. *