aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-08-06 22:24:12 -0700
committerGravatar Yang Gao <yangg@google.com>2015-08-06 22:24:12 -0700
commit03b19118e349ca480f2739ed6efd00ba7be4cf45 (patch)
treef17ce083499513946f4409c319515d61ca8a18d5
parentbe222f8ea00c0b9116949c0f6aa042e3e3939948 (diff)
parent8e5de39fb959b959dd97e0c05ced818c34c02e32 (diff)
Merge pull request #2831 from ctiller/document-some-other-things
Document finish
-rw-r--r--include/grpc++/stream.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpc++/stream.h b/include/grpc++/stream.h
index 3903f2ec06..bc0c3c0f3b 100644
--- a/include/grpc++/stream.h
+++ b/include/grpc++/stream.h
@@ -54,7 +54,11 @@ class ClientStreamingInterface {
// client side declares it has no more message to send, either implicitly or
// by calling WritesDone, it needs to make sure there is no more message to
// be received from the server, either implicitly or by getting a false from
- // a Read(). Otherwise, this implicitly cancels the stream.
+ // a Read().
+ // This function will return either:
+ // - when all incoming messages have been read and the server has returned
+ // status
+ // - OR when the server has returned a non-OK status
virtual Status Finish() = 0;
};