| 
    Kagome
    
   Polkadot Runtime Engine in C++17 
   | 
 
#include <timer.hpp>
Public Member Functions | |
| virtual | ~Timer ()=default | 
| virtual void | expiresAt (clock::SystemClock::TimePoint at)=0 | 
| virtual void | expiresAfter (clock::SystemClock::Duration duration)=0 | 
| virtual void | cancel ()=0 | 
| virtual void | asyncWait (const std::function< void(const std::error_code &)> &h)=0 | 
      
  | 
  virtualdefault | 
      
  | 
  pure virtual | 
Wait for the timer expiration
| h | - handler, which is called, when the timer is expired, or error happens | 
Implemented in kagome::clock::BasicWaitableTimer.
      
  | 
  pure virtual | 
Cancel timer
Implemented in kagome::clock::BasicWaitableTimer.
      
  | 
  pure virtual | 
Set an expire time for this timer
| duration | before timer will be expired | 
Implemented in kagome::clock::BasicWaitableTimer.
      
  | 
  pure virtual | 
Set an expire time for this timer
| at | - timepoint, at which the timer expires | 
Implemented in kagome::clock::BasicWaitableTimer.