FastLED 3.10.6
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
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: