AceRoutine
1.2.3
A low-memory, fast-switching, cooperative multitasking library using stackless coroutines on Arduino platforms.
|
Class that manages instances of the Coroutine
class, and executes them in a round-robin fashion.
More...
#include <CoroutineScheduler.h>
Static Public Member Functions | |
static void | setup () |
Set up the scheduler. More... | |
static void | loop () |
Run the current coroutine using the current scheduler. More... | |
static void | list (Print &printer) |
Print out the known coroutines to the printer (usually Serial). More... | |
Class that manages instances of the Coroutine
class, and executes them in a round-robin fashion.
Definition at line 37 of file CoroutineScheduler.h.
|
inlinestatic |
Print out the known coroutines to the printer (usually Serial).
Note that if this method is never called, the linker will strip out the code. If Serial is never configured in setup(), then this method causes no additional flash memory consumption.
Definition at line 56 of file CoroutineScheduler.h.
|
inlinestatic |
Run the current coroutine using the current scheduler.
This method returns when the underlying Coroutine suspends execution, which allows the system loop() to return to do systems processing, such as WiFi. Everyone must cooperate to make the whole thing work.
Definition at line 48 of file CoroutineScheduler.h.
|
inlinestatic |
Set up the scheduler.
Should be called from the global setup().
Definition at line 40 of file CoroutineScheduler.h.