Posts
All the articles I've posted.
-
Debounced Search in Android with Kotlin Flow — debounce, filter, distinctUntilChanged, flatMapLatest
Build an optimized search with Kotlin Flow — understand how debounce, filter, distinctUntilChanged, and flatMapLatest each solve a specific problem, and why flatMapMerge causes silent UI bugs.
-
Parallel Network Calls and Error Handling in Kotlin Flow — zip, catch, and emitAll
Learn how zip runs two network calls in parallel in Kotlin Flow, how catch handles errors at the pipeline level and per-task level, and how emitAll provides fallback values when one call fails.
-
map vs flatMapConcat in Kotlin Flow — When Your Transformation Returns a Flow
Learn the exact difference between map and flatMapConcat in Kotlin Flow — when to use each, what their transform return types mean, and how to chain serial network calls correctly.
-
flowOn: How Kotlin Flow Controls Which Thread Your Operators Run On
Learn how flowOn acts as a thread bridge in Kotlin Flow, which operators run on which dispatcher, and the most common mistake developers make when assuming IO work runs on the IO thread.