Tag: Coroutines
All the articles with the tag "Coroutines".
-
Lambdas, Higher-Order Functions, and Typealias in Kotlin
Understand lambdas as functions, higher-order functions that accept or return functions, how Java interface listeners map to Kotlin lambda parameters, and how typealias improves readability without adding runtime cost.
-
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.