FastLED 3.10.8
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 791 of file FastLED.cpp.hpp.

791 {
792 fl::ChannelManager& manager = fl::channelManager();
793 // A zero timeout means wait indefinitely. The void API cannot report a
794 // timeout, so returning early would violate its completion contract.
795 manager.waitForReady(0);
796}
bool waitForReady(u32 timeoutMs=1000) FL_NO_EXCEPT
Wait for all drivers to become READY.
ChannelManager & channelManager() FL_NO_EXCEPT
Get the global ChannelManager singleton instance.

References fl::channelManager(), FL_NO_EXCEPT, and fl::ChannelManager::waitForReady().

+ Here is the call graph for this function: