Document that AddMultipleHolds argument must be positive

pull/22524/head
Vijay Pai 5 years ago committed by GitHub
parent 7126ffe0eb
commit 03fffe0fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      include/grpcpp/impl/codegen/client_callback_impl.h

@ -267,6 +267,7 @@ class ClientBidiReactor {
/// StartWritesDone that indicates that there will be no more write ops.
/// The number of RemoveHold calls must match the total number of AddHold
/// calls plus the number of holds added by AddMultipleHolds.
/// The argument to AddMultipleHolds must be positive.
void AddHold() { AddMultipleHolds(1); }
void AddMultipleHolds(int holds) { stream_->AddHold(holds); }
void RemoveHold() { stream_->RemoveHold(); }

Loading…
Cancel
Save