* @brief Schedule a task for execution at specified timestamp * @param timestamp Execution time (e.g., millis()) * @param task Callable to execute when timestamp arrives */
| 37 | * @param task Callable to execute when timestamp arrives |
| 38 | */ |
| 39 | void schedule(u32 timestamp, Task task) { |
| 40 | mQueue.push({timestamp, fl::move(task)}); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @brief Execute all tasks with timestamp <= currentTime |