CatapultServer
v0.5.0.1 (Elephant)
|
Wraps a callback with a timer using an implicit strand. More...
Public Member Functions | |
BasicTimedCallback (TCallbackWrapper &wrapper, boost::asio::io_context &ioContext, const TCallback &callback, TCallbackArgs &&... timeoutArgs) | |
void | setTimeout (const utils::TimeSpan &timeout) |
void | setTimeoutHandler (const TimeoutHandlerType &handler) |
bool | callback (const std::tuple< TCallbackArgs... > &args) |
Private Member Functions | |
void | handleTimedOut () |
Private Attributes | |
TCallbackWrapper & | m_wrapper |
TCallback | m_callback |
std::tuple< TCallbackArgs... > | m_timeoutArgs |
boost::asio::steady_timer | m_timer |
bool | m_isCallbackInvoked |
bool | m_isTimedOut |
TimeoutHandlerType | m_timeoutHandler |
Wraps a callback with a timer using an implicit strand.
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |