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.

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.

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.