No video

Going with the flow - Kotlin Vocabulary

  Рет қаралды 63,194

Android Developers

Android Developers

Күн бұрын

Пікірлер: 46
@xKERiiix
@xKERiiix 3 жыл бұрын
Nice, but audio quality should be better
@Mike-er2ih
@Mike-er2ih 3 жыл бұрын
Agreed. A small t-shirt microphone would make a great change.
@sevarbg83
@sevarbg83 3 жыл бұрын
We need an official google's opinion on replacing livedata with stateflow. Please.
@RaviTejagameboy
@RaviTejagameboy 3 жыл бұрын
@@sevarbg83 They have already added databinding support for Stateflow in canary version.
@theai2020
@theai2020 2 жыл бұрын
Yes its hard to catch up sometime
@abu-bakrpereirakebe508
@abu-bakrpereirakebe508 2 жыл бұрын
Rewrote the entire application to use flow and greatly improved performance. Great video.
@juanf.mateosredondo8830
@juanf.mateosredondo8830 Жыл бұрын
Thanks, Manuel. Now I can go with the flow as Queen of the Stone Age does.
@StevdzaSan
@StevdzaSan 3 жыл бұрын
Good explanation 👏
@rajbopche7992
@rajbopche7992 2 жыл бұрын
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)
@donellmtabvuri1323
@donellmtabvuri1323 3 жыл бұрын
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!!
@hessamemami6936
@hessamemami6936 3 жыл бұрын
Great talk, It would be awesome if you also make a video about Stateflow
@annavonvornewievonhintengleich
@annavonvornewievonhintengleich 3 жыл бұрын
Thx Google. Whats the defference to LiveData?
@ArjunVerma-lq4cf
@ArjunVerma-lq4cf 3 жыл бұрын
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!
@erictsang0
@erictsang0 3 жыл бұрын
Great explanation with lots of relatable examples!!! Replacing LiveData with Flow in my side project haha
@alexandrebrownAI
@alexandrebrownAI 3 жыл бұрын
Consider trying .asLiveData() when consuming a Flow, this way you get the added benefits of LiveData together with Flows
@dreamerslab
@dreamerslab 2 жыл бұрын
So flow is a stream of data in which we can emit new data. Cool
@mehulbisht9708
@mehulbisht9708 3 жыл бұрын
Thanks for the explanation Manuel !
@soumen_pradhan
@soumen_pradhan Жыл бұрын
Why does it feel like they removed callback hell using suspend functions and then added it right back using callbackFlow,
@maartentrompper9618
@maartentrompper9618 3 жыл бұрын
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.
@ssverma1916
@ssverma1916 3 жыл бұрын
Nice, Now waiting for the state and shared flow video ...
@pushpitakarmakar7425
@pushpitakarmakar7425 10 ай бұрын
Doesn't this use case of making requests in fixed intervals fall under a WorkManager?
@PedroBarbosaRoman
@PedroBarbosaRoman 3 жыл бұрын
Duration of video: 13:37 :)
@ismailnurudeen
@ismailnurudeen 3 жыл бұрын
Amazing, I'm replacing RxJava in our current project with Flows.
@jess_o
@jess_o 3 жыл бұрын
Great video, thank you
@samuelho6658
@samuelho6658 Жыл бұрын
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?
@ctarabusi
@ctarabusi 3 жыл бұрын
In 4:36 should be while(isActive) to stop emitting when the coroutine scope is cancelled?
@withKaaveh
@withKaaveh 3 жыл бұрын
Wow! Flow is very amazing!
@yoyochoo
@yoyochoo 3 жыл бұрын
Good guide
@jakubwegrzyn3798
@jakubwegrzyn3798 3 жыл бұрын
How about integration with jetpack compose? Is there any?
@UCjNrKLyRJI-abFA8qiNo92Q
@UCjNrKLyRJI-abFA8qiNo92Q 3 жыл бұрын
@Artem Zanin this question was marked as a duplicate just kiddin
@mnouman6736
@mnouman6736 3 жыл бұрын
this was helpful.
@YoutCodeProgrammingTutorials
@YoutCodeProgrammingTutorials 3 жыл бұрын
can I ask u what tool u are using to make this great presentations !?
@jaya-surya-t
@jaya-surya-t 3 жыл бұрын
CallbackFlow is still under "ExperimentalCoroutinesApi" right ?, any ideas on when it would be promoted to completely stable ?
@pantelischas9460
@pantelischas9460 3 жыл бұрын
great video!!!
@70ME3E
@70ME3E 3 жыл бұрын
well delivered Manuel! :)
@user-oc7py1vy6s
@user-oc7py1vy6s 3 жыл бұрын
Thanks.
@goutham2433
@goutham2433 3 жыл бұрын
Not able to catch your Flow
@leileiliulei6150
@leileiliulei6150 3 жыл бұрын
Good
@jesselima_dev
@jesselima_dev 3 жыл бұрын
Awwwwwesome!!!! clapclapclapclapclapclapclapclap
@Wi1dLife
@Wi1dLife 3 жыл бұрын
So the Flow is another LiveData...
@codinginflow
@codinginflow 3 жыл бұрын
It's better than LiveData because it can hold more than 1 value
@Wi1dLife
@Wi1dLife 3 жыл бұрын
@Artem Zanin *Flowable 😁
@alexconner3958
@alexconner3958 3 жыл бұрын
@Artem Zanin pls no
@withKaaveh
@withKaaveh 3 жыл бұрын
@@codinginflow We will wait for another playlist of your channel for using Flow in a sample app 😄
@maskedredstonerproz
@maskedredstonerproz 3 жыл бұрын
@@codinginflow so basically LiveData on steroids??
Built-in delegates - Kotlin Vocabulary
7:31
Android Developers
Рет қаралды 13 М.
#7 Kotlin Coroutines Flow. StateFlow. SharedFlow || Курс по корутинам
20:41
Android Broadcast. Все об Андроид разработке
Рет қаралды 28 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 2,1 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 28 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 10 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 19 МЛН
Kotlin Coroutines 101 - Android Conference Talks
24:49
Android Developers
Рет қаралды 134 М.
95% Don't Understand THIS About Coroutines (Main-Safety)
9:38
Philipp Lackner
Рет қаралды 27 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 801 М.
Untangling Coroutine Testing by Márton Braun
42:49
Kotlin by JetBrains
Рет қаралды 8 М.
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 42 М.
Suspend functions - Kotlin Vocabulary
9:03
Android Developers
Рет қаралды 50 М.
Thinking in Compose
25:27
Android Developers
Рет қаралды 87 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 2,1 МЛН