FastLED 3.9.15
Loading...
Searching...
No Matches

◆ async_run()

void fl::async_run ( )

Run all registered async tasks once.

This function updates all registered async runners (fetch, timers, etc.) and is automatically called during:

  • FastLED engine events (onEndFrame)
  • delay() calls on WASM platforms (every 1ms)
  • Manual calls for custom async pumping
Note
This replaces the old fetch_update() function with a generic approach

Definition at line 63 of file async.cpp.

63 {
66}
static AsyncManager & instance()
Definition async.cpp:16
void update_all()
Update all registered async runners.
Definition async.cpp:33
static Scheduler & instance()
Definition async.cpp:91
void update()
Definition async.cpp:105

References fl::AsyncManager::instance(), fl::Scheduler::instance(), fl::Scheduler::update(), and fl::AsyncManager::update_all().

Referenced by async_yield(), fetch_update(), loop(), and fl::FetchEngineListener::onEndFrame().

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