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

Method exitCurrent

src/platforms/wasm/coroutine_runtime_wasm.impl.hpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186//=============================================================================
187
188void ICoroutineTask::exitCurrent() FL_NOEXCEPT {
189 CoroutineContext* ctx = CoroutineContext::runningCoroutine();
190 if (ctx) {
191 ctx->set_should_stop(true);
192 }
193 CoroutineContext::suspend();
194 // Should never resume — runner marks completed and removes on should_stop.
195 while (true) {}
196}
197
198} // namespace platforms
199} // namespace fl

Callers

nothing calls this directly

Calls 1

set_should_stopMethod · 0.80

Tested by

no test coverage detected