FastLED 3.9.15
Loading...
Searching...
No Matches
fl::task Class Reference

Detailed Description

Definition at line 53 of file task.h.

#include <task.h>

+ Collaboration diagram for fl::task:

Public Member Functions

 task ()=default
 
 task (const task &)=default
 
 task (task &&)=default
 
taskcancel ()
 
taskcatch_ (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
 
taskoperator= (const task &)=default
 
taskoperator= (task &&)=default
 
bool ready_to_run (uint32_t current_time) const
 
void set_last_run_time (uint32_t time)
 
taskthen (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< TaskImplget_impl () const
 

Private Attributes

shared_ptr< TaskImplmImpl
 

Friends

class Scheduler
 

The documentation for this class was generated from the following files: