MCPcopy Create free account
hub / github.com/FastLED/FastLED / schedule

Method schedule

src/fl/net/rpc_scheduler.h:39–41  ·  view source on GitHub ↗

* @brief Schedule a task for execution at specified timestamp * @param timestamp Execution time (e.g., millis()) * @param task Callable to execute when timestamp arrives */

Source from the content-addressed store, hash-verified

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

Callers 1

scheduleFunctionMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected