FastLED 3.9.15
|
#include <task.h>
Public Member Functions | |
task ()=default | |
task (const task &)=default | |
task (task &&)=default | |
task & | cancel () |
task & | catch_ (function< void(const Error &)> on_catch) |
bool | has_catch () const |
bool | has_then () const |
int | id () const |
int | interval_ms () const |
bool | is_valid () const |
uint32_t | last_run_time () const |
task & | operator= (const task &)=default |
task & | operator= (task &&)=default |
bool | ready_to_run (uint32_t current_time) const |
void | set_last_run_time (uint32_t time) |
task & | then (function< void()> on_then) |
string | trace_label () const |
TaskType | type () const |
Static Public Member Functions | |
static task | after_frame () |
static task | after_frame (const fl::TracePoint &trace) |
static task | after_frame (function< void()> on_then) |
static task | after_frame (function< void()> on_then, const fl::TracePoint &trace) |
static task | at_framerate (int fps) |
static task | at_framerate (int fps, const fl::TracePoint &trace) |
static task | before_frame () |
static task | before_frame (const fl::TracePoint &trace) |
static task | every_ms (int interval_ms) |
static task | every_ms (int interval_ms, const fl::TracePoint &trace) |
Private Member Functions | |
task (shared_ptr< TaskImpl > impl) | |
shared_ptr< TaskImpl > | get_impl () const |
Private Attributes | |
shared_ptr< TaskImpl > | mImpl |
Friends | |
class | Scheduler |