Kotlin Flow Operators - Terminal + Map, Filter Buffer Operators | CheezyCode - Hindi

  Рет қаралды 16,280

Cheezy Code

Cheezy Code

Күн бұрын

Пікірлер: 41
@VAIBHAVPATIL-kv4io
@VAIBHAVPATIL-kv4io 2 жыл бұрын
Bro you are doing an amazing job, this channel is a goldmine for learning android development in kotlin
@CheezyCode
@CheezyCode 2 жыл бұрын
Thank you 🤘
@rehandev7833
@rehandev7833 Жыл бұрын
Just now completed the third part and till now everything is crystal clear. No doubt Cheezy Code is going to achieve newer heights in the coming days. I hope to see more awesome content coming up in this channel. May God bless you :)
@Satishsingh-yc9bs
@Satishsingh-yc9bs 7 ай бұрын
Does it offer any advantange to get the API response in a flow(over Livedata/ suspend function) when Api is a one off call?
@sonalisharma9654
@sonalisharma9654 Жыл бұрын
Very good explanation
@nikhilkeshari9176
@nikhilkeshari9176 2 жыл бұрын
You are too good bro thanks for your support
@baijusharma6027
@baijusharma6027 2 жыл бұрын
Maja aa Gaya! Very much informative. 😃
@CheezyCode
@CheezyCode 2 жыл бұрын
🤘
@dydx3741
@dydx3741 5 ай бұрын
thank you so much i learned so much from this playlist
@swapnilpadaya163
@swapnilpadaya163 Жыл бұрын
Have a doubt, Why didn't it went into recurssion since in onCompletion we are calling emit(6) and onCompletion is called on once everything is completed. But then again in onCompletion we are calling emit(6) then this shoudl keep on going right? Am i missing something here? If so can someone correct me on this.
@Subratsss
@Subratsss 8 ай бұрын
Kotlin Multi-platform ka playlist kab start kar rahe ho
@baijusharma6027
@baijusharma6027 2 жыл бұрын
Hi, I have a doubt. For eg: fun getUsers(): Flow(Using Flow) and suspend fun getUsers(): List (Normal Coroutine). Here both the function will fetch the list of data from the API. What are the benefits of converting API data or List into FLOW? Also, my app does not retrieve streams of data like stock market or video streaming app.
@CheezyCode
@CheezyCode 2 жыл бұрын
fun getUsers(): Flow - this will return every time List to you. After few seconds or any time interval - it will return you a list. fun getUsers(): List - This is just one time. You call this function, gives you result and then it's done. It won't keep listening it for you. Flow ka use waha hoga - jahan pe you are expecting continuous supply of data like stock data, gps data...you call the method once and it keeps on giving you data after certain interval of time....Hope this helps.
@baijusharma6027
@baijusharma6027 2 жыл бұрын
@@CheezyCode Thank you for replying. So if the app doesn't want to receive a continuous stream of data. So will it be beneficial to use FLOW API in the project?
@CheezyCode
@CheezyCode 2 жыл бұрын
yes - livedata ko repository level pe use nahi karna - observable stream banane ke liye Flow ka use kar rahe hai...
@RahulYadav-vs2wd
@RahulYadav-vs2wd 2 жыл бұрын
Is producer and consumer working under the same coroutine scope in this example?. Suppose a consumer perform long running task while collecting data under the same coroutine scope then the producer will stop emitting data until the long running task is completed because the coroutine scope of the producer and consumer is same. Is this true?.
@CheezyCode
@CheezyCode 2 жыл бұрын
both are different coroutine..
@RahulYadav-vs2wd
@RahulYadav-vs2wd 2 жыл бұрын
if a consumer makes a network call while collecting data from producer then the producer will not emit data as we know flow is cold. Flow is cold means when a consumer side make a delay then producer side is also suspended. It means both work under the same coroutine scope.
@2chotti
@2chotti 3 ай бұрын
Brilliant
@droid-aman
@droid-aman 11 ай бұрын
love amul cheese & cheezy code 🥰🥰
@anupsarkar3063
@anupsarkar3063 2 жыл бұрын
Superb💯💯💯
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks 🤗
@shalenmathew
@shalenmathew 10 ай бұрын
Nice
@beyondlimits384
@beyondlimits384 2 жыл бұрын
: Skipped 230 frames! The application may be doing too much work on its main thread. sir aisi errors ko kaise handle kare as{ i m fetching and saving data in form of images and text to firebase }
@amitray769
@amitray769 Жыл бұрын
you are doing network calls on main thread. Don't do that. try to do the network and saving data call on with coroutines.
@sundern990
@sundern990 2 жыл бұрын
Thank you 😀🙏🏻
@CheezyCode
@CheezyCode 2 жыл бұрын
You’re welcome 😊
@rishabhgarg6692
@rishabhgarg6692 Жыл бұрын
Best
@khapp7821
@khapp7821 2 жыл бұрын
amazing
@CheezyCode
@CheezyCode 2 жыл бұрын
Thank you! Cheers!
@ShijenN
@ShijenN Жыл бұрын
Jahapana tussi great ho !!!
@CheezyCode
@CheezyCode Жыл бұрын
🤘
@tusharjain7626
@tusharjain7626 10 ай бұрын
Personal Note : onStart, onEach, onCompletion, terminal, first, toList non terminal, map, filter, buffer, asFlows
@avijitsaha6423
@avijitsaha6423 2 жыл бұрын
Last rapp is the best. Ye language sikh lo...
@CheezyCode
@CheezyCode 2 жыл бұрын
🤘
@AkashJhaDDN
@AkashJhaDDN 2 жыл бұрын
🙏🙏
@AhmadAli-fm4ro
@AhmadAli-fm4ro 2 жыл бұрын
@CheezyCode
@CheezyCode 2 жыл бұрын
🧡
@rishikeshsingh9946
@rishikeshsingh9946 2 жыл бұрын
amazing
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks!
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 7 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 25 МЛН
Kotlin Shared Flow Tutorial | Kotlin Flows | CheezyCode - Hindi
11:03
3 Best Practices to Use Kotlin Flow Effectively!
6:49
Charfaoui Younes
Рет қаралды 3,8 М.
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН