Merge pull request #16657 from g-easy/deadline

Document that set_deadline() uses absolute time.
pull/12667/merge
Vijay Pai 6 years ago committed by GitHub
commit e04a819c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      include/grpcpp/impl/codegen/client_context.h

@ -224,7 +224,7 @@ class ClientContext {
/// \warning This method should only be called before invoking the rpc.
///
/// \param deadline the deadline for the client call. Units are determined by
/// the type used.
/// the type used. The deadline is an absolute (not relative) time.
template <typename T>
void set_deadline(const T& deadline) {
TimePoint<T> deadline_tp(deadline);

Loading…
Cancel
Save