FastLED 3.10.8
Loading...
Searching...
No Matches

◆ after_frame() [4/4]

Handle fl::task::after_frame ( function< void()> on_then,
const TracePoint & trace )

Creates a traced after-frame task, running until canceled, with its success callback already configured.

Parameters
on_thenCallback invoked after each FastLED frame.
traceLocation where the task was created.
Returns
A handle for controlling the task.

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

358 {
359 Handle t = after_frame(trace);
360 t.then(fl::move(on_then));
361 return t;
362}
Task Handle with fluent API (was class fl::task, renamed to avoid namespace collision)
Definition task.h:156
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition s16x16x4.h:30
Handle after_frame() FL_NO_EXCEPT
Creates a task that runs after every FastLED frame until canceled.
Definition task.cpp.hpp:344

References after_frame(), fl::FL_NO_EXCEPT, fl::fl::adl_barrier::move(), and fl::t.

+ Here is the call graph for this function: