GRPC C++  1.30.0
Public Member Functions
grpc_impl::Alarm::experimental_type Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ experimental_type()

grpc_impl::Alarm::experimental_type::experimental_type ( Alarm alarm)
inlineexplicit

Member Function Documentation

◆ Set()

template<typename T >
void grpc_impl::Alarm::experimental_type::Set ( const T &  deadline,
std::function< void(bool)>  f 
)
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)


The documentation for this class was generated from the following file: