FastLED 3.10.6
Loading...
Searching...
No Matches

◆ every_ms() [2/2]

Handle fl::task::every_ms ( int interval_ms,
const TracePoint & trace )

Creates a traced task that runs at a fixed millisecond interval.

Parameters
interval_msInterval between runs.
traceLocation where the task was created.
Returns
A handle for configuring and controlling the task.

Definition at line 324 of file task.cpp.hpp.

324 {
325 return Handle(fl::make_shared<TimeTask>(TaskType::kEveryMs, interval_ms, trace));
326}
Task Handle with fluent API (was class fl::task, renamed to avoid namespace collision)
Definition task.h:156
@ kEveryMs
Runs after a fixed time interval.
Definition task.h:118
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414

References kEveryMs, and fl::make_shared().

+ Here is the call graph for this function: