An interface abstracting Boost.Asio's steady_timer for testability. This is an internal interface used for dependency injection and mocking.
More...
#include <itimer.hpp>
|
| virtual | ~TimerInterface ()=default |
| |
| virtual void | expires_after (std::chrono::milliseconds expiry_time)=0 |
| |
| virtual void | async_wait (std::function< void(const boost::system::error_code &)> handler)=0 |
| |
| virtual void | cancel ()=0 |
| |
An interface abstracting Boost.Asio's steady_timer for testability. This is an internal interface used for dependency injection and mocking.
Definition at line 34 of file itimer.hpp.
◆ ~TimerInterface()
| virtual unilink::interface::TimerInterface::~TimerInterface |
( |
| ) |
|
|
virtualdefault |
◆ async_wait()
| virtual void unilink::interface::TimerInterface::async_wait |
( |
std::function< void(const boost::system::error_code &)> |
handler | ) |
|
|
pure virtual |
◆ cancel()
| virtual void unilink::interface::TimerInterface::cancel |
( |
| ) |
|
|
pure virtual |
◆ expires_after()
| virtual void unilink::interface::TimerInterface::expires_after |
( |
std::chrono::milliseconds |
expiry_time | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: