diff options
author | Vijay Pai <vpai@google.com> | 2018-12-03 20:00:08 -0800 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-12-03 20:00:08 -0800 |
commit | 606177bbc8343c94b075021522f304e6ecf43aa8 (patch) | |
tree | 4bcb860c874061835edc7ee6f93d8aed73f00ca1 /include/grpcpp | |
parent | c339ba32298a00436ba98800d513dcf4d0944d11 (diff) |
Document that ClientContext must remain alive for duration of RPC
Diffstat (limited to 'include/grpcpp')
-rw-r--r-- | include/grpcpp/impl/codegen/client_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grpcpp/impl/codegen/client_context.h b/include/grpcpp/impl/codegen/client_context.h index 6059c3c58a..142cfa35dd 100644 --- a/include/grpcpp/impl/codegen/client_context.h +++ b/include/grpcpp/impl/codegen/client_context.h @@ -168,6 +168,8 @@ class InteropClientContextInspector; /// (see \a grpc::CreateCustomChannel). /// /// \warning ClientContext instances should \em not be reused across rpcs. +/// \warning The ClientContext instance used for creating an rpc must remain +/// alive and valid for the lifetime of the rpc. class ClientContext { public: ClientContext(); |