25 #ifndef ACE_ROUTINE_COROUTINE_SCHEDULER_H 26 #define ACE_ROUTINE_COROUTINE_SCHEDULER_H 40 static void setup() { getScheduler()->setupScheduler(); }
48 static void loop() { getScheduler()->runCoroutine(); }
56 static void list(Print& printer) {
57 getScheduler()->listCoroutines(printer);
72 void setupScheduler();
78 void listCoroutines(Print& printer);
static void list(Print &printer)
Print out the known coroutines to the printer (usually Serial).
static void loop()
Run the current coroutine using the current scheduler.
Class that manages instances of the Coroutine class, and executes them in a round-robin fashion...
static void setup()
Set up the scheduler.
All coroutines are instances of the Coroutine base class.
Base class of all coroutines.