Рет қаралды 37,464
Kotlin Flow Tutorial - In this video, we will learn about what is Kotlin Flow? What is channel in Kotlin? We will understand - what are streams and how to implement them in Kotlin. Learn what is the need of streams, what are suspend functions and coroutines in Kotlin with simple example.
Coroutines Suspend functions work great when we have no or single output. But for scenarios where we have streams of data, we need to have some mechanism to implement that behavior. For this we have Kotlin Channels and Flows. Channels are hot whereas Flows are mostly cold. Hot stream is one where producers keeps producing data even if there are no consumers. Cold stream produces data only where there is at least one consumer available to consume the data.
Learn by creating a simple example in Hindi.
Topics covered -
1. Coroutines and Suspend
2. What are streams? How to implement Streams in Kotlin
3. Channels and Flows with Simple Example
4. Hot and Cold Streams.
5. Channels vs Flows in Kotlin
Kotlin Flows Playlist -
• Kotlin Flows Tutorials
Jetpack Paging Tutorial -
• Android Paging 3 | Jet...
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode