Android

Concept of Flow in Kotlin

In Kotlin, Coroutines can be used to simplify asynchronous codes. Coroutine basically helps to implement asynchronous, non-blocking code. For this, we use the suspend function. But the problem with the suspend function is it returns a single object. In such a scenario where you need a data stream, Kotlin has the concept of channel and...

by Chandan Kumar Vidyarthi
Tag: #coroutine #flow
18-Mar-2023