| 114 | class TimeTask : public ITaskImpl { |
| 115 | public: |
| 116 | TimeTask(TaskType type, int interval_ms, optional<TracePoint> trace = nullopt) |
| 117 | : mTaskId(next_task_id()) |
| 118 | , mType(type) |
| 119 | , mIntervalMs(interval_ms) |
| 120 | , mTraceLabel(trace ? make_unique<string>(make_trace_label(*trace)) : nullptr) |
| 121 | // Use (max)() to prevent macro expansion by Arduino.h's max macro |
| 122 | , mLastRunTime((numeric_limits<u32>::max)()) {} |
| 123 | |
| 124 | void set_then(function<void()> on_then) override { |
| 125 | mThenCallback = fl::move(on_then); |
nothing calls this directly
no test coverage detected