This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-11 02:12:49 +01:00
|
|
|
#ifndef FORTUNA_EVENT_SCHEDULER_H
|
|
|
|
#define FORTUNA_EVENT_SCHEDULER_H
|
|
|
|
|
|
|
|
#include <chrono>
|
|
|
|
|
|
|
|
namespace fortuna {
|
|
|
|
namespace accumulator {
|
|
|
|
|
|
|
|
class EventScheduler {
|
|
|
|
public:
|
2022-01-17 04:42:59 +01:00
|
|
|
virtual void schedule(const std::chrono::milliseconds& delay_ms) = 0;
|
2021-12-11 02:12:49 +01:00
|
|
|
|
|
|
|
EventScheduler(const EventScheduler&) = delete;
|
|
|
|
EventScheduler& operator=(const EventScheduler&) = delete;
|
|
|
|
~EventScheduler() noexcept;
|
|
|
|
};
|
|
|
|
|
2022-01-10 04:25:03 +01:00
|
|
|
} // namespace accumulator
|
|
|
|
} // namespace fortuna
|
2021-12-11 02:12:49 +01:00
|
|
|
|
2022-01-10 04:25:03 +01:00
|
|
|
#endif // FORTUNA_EVENT_SCHEDULER_H
|
2021-12-11 02:12:49 +01:00
|
|
|
|