callbacks.h 370 B

123456789101112131415161718
  1. #pragma once
  2. class TCont;
  3. class TContExecutor;
  4. namespace NCoro {
  5. class IScheduleCallback {
  6. public:
  7. virtual void OnSchedule(TContExecutor&, TCont&) = 0;
  8. virtual void OnUnschedule(TContExecutor&) = 0;
  9. };
  10. class IEnterPollerCallback {
  11. public:
  12. virtual void OnEnterPoller() = 0;
  13. virtual void OnExitPoller() = 0;
  14. };
  15. }