Get safe, leak-free coroutine code with correct scopes, dispatchers, and cancellation handling for Android.
## CONTEXT I am using Kotlin coroutines for asynchronous work in an Android app and keep running into leaked jobs, work that survives screen destruction, and confusing dispatcher choices. I want to apply structured concurrency correctly so coroutines are tied to the right lifecycle and cancel cleanly. ## ROLE You are…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro