Commit afd07e80 authored by tqcq's avatar tqcq
Browse files

feat add TimerPtr

parent e730d57c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ private:

class Timer {
public:
    using TimerPtr = std::unique_ptr<Timer, TimerThreadDeleter>;

    using OnExpired                 = std::function<sled::optional<DurationMs>()>;
    Timer(const Timer &)            = delete;
    Timer &operator=(const Timer &) = delete;