FastLED 3.10.8
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
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
@ kEveryMs
Runs after a fixed time interval.
Definition task.h:118

References fl::FL_NO_EXCEPT, fl::task::ITaskImpl::interval_ms(), kEveryMs, and fl::adl_barrier::make_shared().

+ Here is the call graph for this function: