Going with the flow - Kotlin Vocabulary

preview_player
Показать описание
Suspend functions in Coroutines are meant for one-shot calls that could return a result. But, how can you create a stream of data to return multiple results over time? In this video of Kotlin Vocabulary, Manuel will give us the benefits of Kotlin Flow, and much more!



#Flow #KotlinVocabulary #AndroidDevelopers
Рекомендации по теме
Комментарии
Автор

Nice, but audio quality should be better

xKERiiix
Автор

Rewrote the entire application to use flow and greatly improved performance. Great video.

abu-bakrpereirakebe
Автор

Great video, I didn't understand the firebase part in the doc but in this video, I know now what it is, and also it is a good idea to explain the same code in video and doc, Keep up the good work!

ArjunVerma-lqcf
Автор

Great talk, It would be awesome if you also make a video about Stateflow

hessamemami
Автор

Thanks, Manuel. Now I can go with the flow as Queen of the Stone Age does.

juanf.mateosredondo
Автор

Since flow are executed in the same context we called collect from, the video example fetches the latest news on the main thread. In-order to transfer fetch the latest news to the worker/IO thread we can make use of flowOn() intermediate operator.
For details please check out the Android docs on Kotlin Flow (section - Executing in different coroutine context)

rajbopche
Автор

In 4:36 should be while(isActive) to stop emitting when the coroutine scope is cancelled?

ctarabusi
Автор

Thx Google. Whats the defference to LiveData?

annavonvornewievonhintengleich
Автор

CallbackFlow is still under "ExperimentalCoroutinesApi" right ?, any ideas on when it would be promoted to completely stable ?

jaya-surya-t
Автор

Great explanation with lots of relatable examples!!! Replacing LiveData with Flow in my side project haha

erictsang
Автор

Nice, Now waiting for the state and shared flow video ...

ssverma
Автор

can I ask u what tool u are using to make this great presentations !?

YoutCodeProgrammingTutorials
Автор

Flow is pretty cool, but I find it quite difficult to manage coroutine contexts when making Flow into a StateFlow -- and unsure what the heck is going on. It would be nice to get some easy-to-understand resources about this.

maartentrompper
Автор

Doesn't this use case of making requests in fixed intervals fall under a WorkManager?

pushpitakarmakar
Автор

This is a very good explanation, the LiveData and Flow codelab was challenging for me and this just cleared up all the frustration I was having using Flow, gracias!!

donellmtabvuri
Автор

Why does it feel like they removed callback hell using suspend functions and then added it right back using callbackFlow,

soumen_pradhan
Автор

Since flows can be active over a long period of time, does that mean that they should be called from the IO dispatcher? ie. In the first example, there is a while loop in the flow. Would that result in useless work being done / a coroutine being active when it's not needed for most of the time?

samuelho
Автор

So flow is a stream of data in which we can emit new data. Cool

dreamerslab
Автор

Amazing, I'm replacing RxJava in our current project with Flows.

ismailnurudeen
Автор

How about integration with jetpack compose? Is there any?

jakubwegrzyn