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

◆ then()

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

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

276 {
277 if (mImpl) {
278 mImpl->set_then(fl::move(on_then));
279 if (!mImpl->is_auto_registered()) {
280 mImpl->auto_register_with_scheduler();
282 }
283 }
284 return *this;
285}
shared_ptr< ITaskImpl > mImpl
Definition task.h:194
static Scheduler & instance()
int add_task(Handle t)
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28

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

Referenced by fl::detail::AsyncLoggerServiceTask::AsyncLoggerServiceTask(), fl::audio::Processor::createWithAutoInput(), autoresearch::maybeRegisterStubAutorun(), operator=(), setup(), and autoresearch::setupRpcAsyncTask().

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