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

Method exitCurrent

src/platforms/arm/teensy/coroutine_teensy.impl.hpp:341–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339//=============================================================================
340
341void ICoroutineTask::exitCurrent() FL_NOEXCEPT {
342 CoroutineContext* ctx = CoroutineContext::runningCoroutine();
343 if (ctx) {
344 ctx->set_should_stop(true);
345 }
346 CoroutineContext::suspend();
347 // Should never resume — runner marks completed and removes on should_stop.
348 while (true) {}
349}
350
351} // namespace platforms
352} // namespace fl

Callers

nothing calls this directly

Calls 1

set_should_stopMethod · 0.80

Tested by

no test coverage detected