Coroutines Articles
Inside Retrofit: Dynamic Proxies and Coroutine Call Adapters
Break down Retrofit network layer end to end: from JDK dynamic proxy intercepting interface methods, to annotation parsing generating request templates, to OkHttp lazy-execution bridging and CallAdapter coroutine adaptation, revealing the plugin-based design behind declarative HTTP architecture.
Read Post
Ktor Client End-to-End: From Engine Abstraction to a Coroutine-Powered Network Layer in Kotlin Multiplatform
This article walks through Ktor Client end to end, examining its engine abstraction, interceptor pipelines, and coroutine-based network layer, and covers practical topics like engine selection, timeout semantics, and MockEngine testing.
Read Post
Kotlin Coroutine Cancellation: Cooperative Shutdown Done Safely
Understand cancellation propagation, structured concurrency, and how to use NonCancellable correctly for safe cleanup.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post