FastLED 3.10.6
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
Handle after_frame()
Creates a task that runs after every FastLED frame until canceled.
Definition task.cpp.hpp:344
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:28

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

+ Here is the call graph for this function: