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

◆ after_frame() [3/4]

Handle fl::task::after_frame ( function< void()> on_then)

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

Parameters
on_thenCallback invoked after each FastLED frame.
Returns
A handle for controlling the task.

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

352 {
353 Handle t = after_frame();
354 t.then(fl::move(on_then));
355 return t;
356}
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: