Mukesh Rajputrajputmukesh748.hashnode.dev·Sep 16, 2024Mastering Kotlin Flows: Simplifying Reactive Programming in AndroidIn modern Android development, handling data streams and asynchronous tasks is crucial, especially when dealing with real-time data updates, network requests, and UI changes. Kotlin Flow, part of Kotlin Coroutines, simplifies reactive programming and...Discuss·10 likesflow
Romman Sabbirrommansabbir.com·Sep 14, 2024Kotlin : How to Flow?Kotlin Flow is a powerful and easy-to-use tool for handling asynchronous data streams in Kotlin, especially useful for modern Android development. At first glance, Flow might seem a bit complex, but don’t worry! In this article, we’ll break it down i...Discuss·83 readsKotlindata stream
Vignesh Prabhuwww.vigneshprabhu.dev·May 14, 2024Cold and Hot FlowsIn this series of articles , we are discussing about Kotlin flows and in this article we will discuss about Cold and Hot Flows Cold Flow Flows created with flow builders are cold by default Properties Becomes active on terminal operators(like coll...DiscussKotlin FlowsAndroid
Vignesh Prabhuwww.vigneshprabhu.dev·May 12, 2024Flow CancellationIn this series of articles , we are discussing about Kotlin flows and in this article we will discuss about Flow Cancellation. There are 2 ways to cancel the flow 1.Cancel the coroutine job // cancel the job val job = launch { sampleF...Discuss·43 readsKotlin FlowsAndroid
Vignesh Prabhuwww.vigneshprabhu.dev·May 10, 2024Flow Intermediate OperatorIn this series of articles , we are discussing about Kotlin flows and in this article we will discuss about Flows Intermediate Operators Code : https://gist.github.com/vprabhu/04cd8f6eaeecaf0d3de72049d023eddf Sample Android App : Code : https://githu...Discuss·1 like·47 readsKotlin FlowsAndroid
Vignesh Prabhuwww.vigneshprabhu.dev·May 9, 2024Flow Exception HandlingIn this series of articles , we are discussing about Kotlin flows and in this article we will discuss about Flows Exception handling try/catch operator We can simply enclose the collect block with try/catch as follows suspend fun main(): Unit = cor...Discuss·36 readsKotlin FlowsAndroid
Vignesh Prabhuwww.vigneshprabhu.dev·May 7, 2024Flow Terminal OperatorsIn this series of articles , we are discussing about Kotlin flows and in this article we will discuss about Flows Terminal operators Code gist can be found in https://gist.github.com/vprabhu/20bf26e73451ae9ea0876e3780537d4a Whats is Terminal Operator...DiscussKotlin FlowsTerminal Operators
Vignesh Prabhuwww.vigneshprabhu.dev·May 5, 2024Kotlin Flow and Flow BuildersIn this series of articles , we will discuss about Kotlin flows and in this article we will discuss about Flows and Flow Builders Code gist can be found in https://gist.github.com/vprabhu/cf5f6407516f0bc97d764c7a9961e3cd Whats is Flow ? Already we kn...DiscussKotlin FlowsKotlin
Tushar Pingaletusharpingale.hashnode.dev·Nov 21, 2023Leveraging fold operator in Kotlin flow to optimize Room DB upsertsHey everyone, today we will look into an interesting topic to optimize room DB upserts using fold in Kotlin flow. The case? We are working on a chat application where we fetch a list of chats in pages from the network and upsert it into DB as it is a...Discuss·9 likes·447 readsKotlin
Sanskar Agrawalblog.sanskar10100.dev·Feb 26, 2023Context Receivers in Kotlin: An ExampleContext Receivers are a new feature introduced in Kotlin 1.6.20. They're useful for receiving the context from the call-site when a function is called. To understand it and its utility, let's first take a look at a similar feature available in the la...Discuss·704 readsAndroid