FastLED 3.10.9
Loading...
Searching...
No Matches

◆ wait() [1/2]

void CFastLED::wait ( )

Wait for all channel bus transmissions to complete.

Note
Normal animation code does not need to call this after show(); the next frame waits before reusing driver-owned data.
This overload waits indefinitely while cooperatively running system work. Use wait(timeout_ms) when the caller needs a bounded wait.
Safe to call on all platforms (no-op on platforms without channel bus).

Definition at line 795 of file FastLED.cpp.hpp.

795 {
796 // A zero timeout means wait indefinitely. The void API cannot report a
797 // timeout, so returning early would violate its completion contract.
798 // Dispatch only to consumers already in use; do not construct a manager
799 // in legacy-only sketches just to wait for their direct driver.
801}
bool waitForDriverCompletion(u32 timeoutMs) FL_NO_EXCEPT
Wait for installed consumers using one deadline (zero means indefinitely).

References FL_NO_EXCEPT, and fl::detail::waitForDriverCompletion().

+ Here is the call graph for this function: