| 186 | //============================================================================= |
| 187 | |
| 188 | void 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 |
nothing calls this directly
no test coverage detected