Android Coroutines Expert
Implements production-grade Kotlin Coroutines for Android following 2025 standards for structured concurrency and lifecycle safety.
This skill provides an authoritative set of rules and implementation patterns for writing robust, leak-proof Kotlin Coroutines code within Android applications. It automates best practices such as dispatcher injection for testability, main-safety in data layers, and lifecycle-aware data collection using repeatOnLifecycle. By enforcing strict patterns for error handling and reactive stream management (Flow/StateFlow), it helps developers build responsive, efficient mobile apps while avoiding common pitfalls like GlobalScope usage or improper cancellation handling.
Características Principales
01Provides robust error handling strategies using SupervisorJob and CoroutineExceptionHandler
02Converts legacy callback-based APIs into modern reactive streams using callbackFlow
0356 GitHub stars
04Enforces structured concurrency and dispatcher injection for maximum testability
05Implements lifecycle-aware Flow collection using repeatOnLifecycle standards
06Ensures main-safety across data and domain layers using withContext
Casos de Uso
01Building reactive UI states using StateFlow and ViewModelScope for stable Android apps
02Refactoring legacy background tasks and thread management to modern Coroutines
03Fixing memory leaks and threading bugs related to improper coroutine scope usage