14 ss << fl::get<0>(trace) <<
":" <<
fl::get<1>(trace);
193 if (!
mImpl->is_auto_registered()) {
194 mImpl->auto_register_with_scheduler();
210 mImpl->set_canceled();
251 return mImpl ?
mImpl->ready_to_run(current_time) :
false;
static Scheduler & instance()
const string & str() const
bool ready_to_run_frame_task(uint32_t current_time) const
function< void()> mThenCallback
unique_ptr< string > mTraceLabel
void execute_catch(const Error &error)
bool ready_to_run(uint32_t current_time) const
static shared_ptr< TaskImpl > create_at_framerate(int fps)
function< void(const Error &)> mCatchCallback
static shared_ptr< TaskImpl > create_after_frame()
static shared_ptr< TaskImpl > create_every_ms(int interval_ms)
TaskImpl(TaskType type, int interval_ms)
void auto_register_with_scheduler()
void set_catch(function< void(const Error &)> on_catch)
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
void set_last_run_time(uint32_t time)
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)
static task every_ms(int interval_ms)
Universal timing functions for FastLED.
fl::string make_trace_label(const fl::TracePoint &trace)
constexpr remove_reference< T >::type && move(T &&t) noexcept
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args)
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.
shared_ptr< T > make_shared(Args &&... args)
fl::tuple< const char *, int, uint32_t > TracePoint
A structure to hold source trace information.
pair_element< I, T1, T2 >::type & get(pair< T1, T2 > &p) noexcept
Generic asynchronous task management for FastLED.