DoLaterHandler.h 227 B

123456789101112131415
  1. #pragma once
  2. #include <functional>
  3. class DoLaterHandler
  4. {
  5. private:
  6. std::function<void()> action;
  7. public:
  8. DoLaterHandler();
  9. ~DoLaterHandler();
  10. void addTodo(std::function<void()> action);
  11. void execute();
  12. };