Purpose
Keep UI responsive and background work reliable under Android platform constraints.
When to use
Use this skill when touching:
- •Kotlin coroutines, flows, or dispatchers
- •Service / WorkManager / JobScheduler
- •long-running or background work
How to use
- •Open
references/concurrency-android.md. - •Decide: in-process coroutine vs WorkManager vs Foreground Service. Justify with constraints.
- •Enforce structured concurrency and cancellation paths.
- •Define failure handling and retries (idempotency).
- •Define observability (log correlation IDs; metrics for queue/latency).
- •Define verification (unit tests + instrumentation tests if needed; background restrictions).
Output expectation
- •Add an Android Background Work Choice section to the Concurrency Plan.