FastLED 3.9.15
Loading...
Searching...
No Matches

◆ then()

task & fl::task::then ( fl::function< void()> on_then)

Definition at line 188 of file task.cpp.

188 {
189 if (mImpl) {
190 mImpl->set_then(fl::move(on_then));
191
192 // Auto-register with scheduler when callback is set
193 if (!mImpl->is_auto_registered()) {
194 mImpl->auto_register_with_scheduler();
196 }
197 }
198 return *this;
199}
static Scheduler & instance()
Definition async.cpp:91
int add_task(task t)
Definition async.cpp:95
shared_ptr< TaskImpl > mImpl
Definition task.h:113
constexpr remove_reference< T >::type && move(T &&t) noexcept
Definition move.h:27

References task(), fl::Scheduler::add_task(), fl::Scheduler::instance(), mImpl, and fl::move().

Referenced by after_frame(), after_frame(), and setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: