From 1359543b47c0ecff8ecd50ae4d3a2989e16a8a94 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Wed, 19 Sep 2018 09:39:21 -0700 Subject: [PATCH] Add a comment to address reviewer feedback --- include/grpcpp/alarm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/grpcpp/alarm.h b/include/grpcpp/alarm.h index f9008c327e4..365feb4eb95 100644 --- a/include/grpcpp/alarm.h +++ b/include/grpcpp/alarm.h @@ -85,6 +85,9 @@ class Alarm : private GrpcLibraryCodegen { public: explicit experimental_type(Alarm* alarm) : alarm_(alarm) {} + /// Set an alarm to invoke callback \a f. The argument to the callback + /// states whether the alarm expired at \a deadline (true) or was cancelled + /// (false) template void Set(const T& deadline, std::function f) { alarm_->SetInternal(TimePoint(deadline).raw_time(), std::move(f));