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

◆ AsyncLoggerServiceTask()

fl::detail::AsyncLoggerServiceTask::AsyncLoggerServiceTask ( )
private

Definition at line 236 of file async_logger.cpp.hpp.

237 : mIntervalMs(16)
239 , mTask()
240{
241 // Create and register task with scheduler
242 // Default 16ms interval = 60 Hz (one frame at 60fps)
244 .then([this]() {
245 // Service all registered async loggers
246 this->serviceLoggers();
247 });
248
250}
void serviceLoggers() FL_NO_EXCEPT
Service all registered loggers (called by task)
Handle & then(function< void()> on_then) FL_NO_EXCEPT
Sets the callback invoked when the task runs successfully.
Definition task.cpp.hpp:276
static Scheduler & instance() FL_NO_EXCEPT
int add_task(Handle t) FL_NO_EXCEPT
Handle every_ms(int interval_ms) FL_NO_EXCEPT
Creates a task that runs at a fixed millisecond interval.
Definition task.cpp.hpp:320

References fl::task::Scheduler::add_task(), fl::task::every_ms(), fl::FL_NO_EXCEPT, fl::task::Scheduler::instance(), mIntervalMs, mMessagesPerTick, mTask, serviceLoggers(), and fl::task::Handle::then().

Referenced by ~AsyncLoggerServiceTask(), fl::SingletonShared< AsyncLoggerServiceTask >, and instance().

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