19 virtual void schedule(std::function<
void()> task) = 0;
Definition: scheduler.hpp:5
virtual void wait()=0
Waits for all scheduled tasks to complete.
virtual ~IScheduler()=default
virtual void schedule(std::function< void()> task)=0
Schedules a task to be executed by the scheduler.
virtual void shutdown()=0
Shuts down the scheduler and stops all scheduled tasks.