MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / repeating_callback

Function repeating_callback

tests/test-scheduler-basic-thorough.cpp:307–312  ·  view source on GitHub ↗

* @brief Repeating callback for iteration testing * * Uses static counter to track execution number, enabling verification * of proper iteration counting and repeated execution behavior. */

Source from the content-addressed store, hash-verified

305 * of proper iteration counting and repeated execution behavior.
306 */
307void repeating_callback() {
308 static int counter = 0;
309 counter++;
310 test_output.push_back("Repeating task #" + std::to_string(counter));
311 std::cout << "Repeating task #" << counter << " executed at " << millis() << "ms" << std::endl;
312}
313
314/**
315 * @brief Callback for yield switching tests

Callers

nothing calls this directly

Calls 1

millisFunction · 0.85

Tested by

no test coverage detected