|
Interactive CLI 2.3
A cross-platform C++14 library for interactive command-line interfaces
|
#include <scheduler.h>

Public Member Functions | |
| virtual | ~Scheduler ()=default |
| virtual void | Post (const std::function< void()> &f)=0 |
| Submits a completion token or function object for execution. | |
A Scheduler represents an engine capable of running a task. Its method Post can be safely called from any thread to submit the task that will execute in an unspecified thread of execution as soon as possible (but in any case after the call to Post is terminated).
Definition at line 44 of file scheduler.h.
|
virtualdefault |
|
pure virtual |
Submits a completion token or function object for execution.
Implemented in cli::LoopScheduler.