124 template<
typename T,
typename... Args>
TaskImpl & operator=(TaskImpl &&)=default
bool ready_to_run_frame_task(uint32_t current_time) const
function< void()> mThenCallback
unique_ptr< string > mTraceLabel
void execute_catch(const Error &error)
TaskImpl(const TaskImpl &)=delete
bool ready_to_run(uint32_t current_time) const
TaskImpl(TaskImpl &&)=default
static shared_ptr< TaskImpl > create_at_framerate(int fps)
TaskImpl & operator=(const TaskImpl &)=delete
function< void(const Error &)> mCatchCallback
static shared_ptr< TaskImpl > create_after_frame()
friend shared_ptr< T > make_shared(Args &&... args)
string trace_label() const
static shared_ptr< TaskImpl > create_every_ms(int interval_ms)
TaskImpl(TaskType type, int interval_ms)
uint32_t last_run_time() const
void auto_register_with_scheduler()
bool is_auto_registered() const
void set_catch(function< void(const Error &)> on_catch)
void set_last_run_time(uint32_t time)
void set_then(function< void()> on_then)
static shared_ptr< TaskImpl > create_before_frame()
static task after_frame()
shared_ptr< TaskImpl > mImpl
uint32_t last_run_time() const
bool ready_to_run(uint32_t current_time) const
shared_ptr< TaskImpl > get_impl() const
void set_last_run_time(uint32_t time)
task & operator=(const task &)=default
task & operator=(task &&)=default
static task before_frame()
task & then(function< void()> on_then)
task & catch_(function< void(const Error &)> on_catch)
string trace_label() const
static task at_framerate(int fps)
task(const task &)=default
static task every_ms(int interval_ms)
Universal timing functions for FastLED.
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.
fl::tuple< const char *, int, uint32_t > TracePoint
A structure to hold source trace information.
Promise-based fluent API for FastLED - standalone async primitives.