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·8 likes·327 readsKotlin
Sanskar Agrawalsanskar10100.hashnode.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·632 readsAndroid