Run the loop in an owned structured scope and cooperate with cancellation by checking `isActive` or calling `yield()`. Ensure child tasks are joined or awaited, let scope cancellation propagate, clean up on lifecycle termination, and do not use `runBlocking` in production.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Kotlin Coroutines?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-kotlin-coroutines-eedc2f16)
Run the loop in an owned structured scope and cooperate with cancellation by checking `isActive` or calling `yield()`. Ensure child tasks are joined or awaited, let scope cancellation propagate, clean up on lifecycle termination, and do not use `runBlocking` in production.