Document that ClientContext must remain alive for duration of RPC

pull/17386/head
Vijay Pai 6 years ago
parent c339ba3229
commit 606177bbc8
  1. 2
      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();

Loading…
Cancel
Save