Toshik / TickerScheduler

Simple scheduler for ESP8266 Arduino based on Ticker
127 stars 42 forks source link

Ensure priority of tasks #6

Open maxdd opened 7 years ago

maxdd commented 7 years ago

Hello, I was wondering how one can achieve priority with your library. Assume you have 2 tasks, one at 250ms and one at 2 seconds. How can you force the 8th 250ms task to be computed before the 2 seconds task?

Regards,

Toshik commented 7 years ago

For now task execution order is based on task index. You may order tasks in order you want to run it. Task 1 will be executed before task 2.