| 339 | //============================================================================= |
| 340 | |
| 341 | void 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 |
nothing calls this directly
no test coverage detected