Coroutines Articles

Kotlin Coroutine Cancellation: Cooperative Shutdown Done Safely

Understand cancellation propagation, structured concurrency, and how to use NonCancellable correctly for safe cleanup.

Managing On-Device AI Inference Lifecycles with Kotlin Coroutines

How to use structured concurrency to manage Android on-device AI inference: GPU resource release ordering, actor-style serialization, and cancellation propagation.

Android SharedPreferences to DataStore Deep Dive: From ANR Risk to Flow-Based Coroutine Storage

A deep look at SharedPreferences locking and ANR root causes, Jetpack DataStore's design, migration paths, Preferences DataStore, Proto DataStore, and coroutine-based storage architecture.

Advanced Kotlin Coroutines and Flow: Applications and Internals

Async programming is unavoidable in Android development. This guide explains advanced Kotlin Coroutines and Flow usage, from structured concurrency to reactive streams.