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

Method TimeTask

src/fl/task/task.cpp.hpp:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114class TimeTask : public ITaskImpl {
115public:
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);

Callers

nothing calls this directly

Calls 2

next_task_idFunction · 0.85
make_trace_labelFunction · 0.85

Tested by

no test coverage detected