LionTask

Tiny cooperative (run-to-completion) task scheduler for ESP8266 and AVR.

Author
leva
Website
https://github.com/blah188/LionTask
Category
Timing
License
NOASSERTION
Library Type
Contributed
Architectures
esp8266, avr

Pump LionTask::Loop() from loop(); each task runs to completion on the main context (no preemption, no per-task stack). Subclass LionTimerTask / LionShortTimerTask / LionCrudeTimerTask / LionCriticalTask and override TaskInnerBody(), or use LionSimpleTask to run a lambda without subclassing (ESP only). Critical tasks also run during Yield()/Delay(). Tasks register themselves by pointer and are non-copyable: create each once as a global/static or via new. Depends on LionArray. ESP8266 + AVR (on ESP32 use LionRtosTask instead).

Downloads

Filename Release Date File Size
LionTask-1.0.0.zip 2026-06-29 13.94 KiB