MCPcopy Create free account
hub / github.com/FastLED/FastLED / waitForReadyOrDraining

Method waitForReadyOrDraining

src/fl/channels/driver.cpp.hpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool IChannelDriver::waitForReadyOrDraining(u32 timeoutMs) {
73 // wait until the driver is in a READY or DRAINING state.
74 bool ok = waitForCondition([this]() {
75 auto state = poll();
76 return state.state == IChannelDriver::DriverState::READY || state.state == IChannelDriver::DriverState::DRAINING;
77 }, timeoutMs);
78 return ok;
79}
80
81} // namespace fl

Callers 1

FL_TEST_FILEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected