GRPC C++
1.26.0
|
NOTE: class experimental_type is not part of the public API of this class TODO(vjpai): Move these contents to the public API of Alarm when they are no longer experimental. More...
#include <alarm_impl.h>
Public Member Functions | |
experimental_type (Alarm *alarm) | |
template<typename T > | |
void | Set (const T &deadline, std::function< void(bool)> f) |
Set an alarm to invoke callback f. More... | |
NOTE: class experimental_type is not part of the public API of this class TODO(vjpai): Move these contents to the public API of Alarm when they are no longer experimental.
|
inlineexplicit |
|
inline |
Set an alarm to invoke callback f.
The argument to the callback states whether the alarm expired at deadline (true) or was cancelled (false)