hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
timer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_YAC_TIMER_HPP
7 #define IROHA_YAC_TIMER_HPP
8 
9 #include <functional>
10 
11 namespace iroha::consensus::yac {
15  class Timer {
16  public:
21  virtual void invokeAfterDelay(std::function<void()> handler) = 0;
22 
23  virtual ~Timer() = default;
24  };
25 } // namespace iroha::consensus::yac
26 
27 #endif // IROHA_YAC_TIMER_HPP
Definition: timer.hpp:15
virtual void invokeAfterDelay(std::function< void()> handler)=0
virtual ~Timer()=default
Definition: cluster_order.hpp:16