there's an issue with the implementation here @7:03. Everytime you call producer() function a new flow is being created. Instead for using shared flow, you need to use the same 'result' variable that you saved from calling producer() for both consumer with and without delay. Everytime when you call producer() function a new instance of flow is created and all the consumers get all the stream items
As u said in initial videos in order to have hot stream we can use channels then why do we get shareFlow which also gives hot stream ? Is it we want to get the advantage of flow operators, event and other utilities available in the flow which may not be present in channels ?
In your previous lecture you mentioned when we start using collect then only producer will start but with given example of delay it's starting before that
Totally agree, nowadays people used to attract towards vulgarity and foul language content but there are people who appreciate your videos worth..keep sharing these informative video
sir i have a doubt .... when i create this producer function inside mainactivity class it wont work as shared flow (it works as normal flow with cold nature)..but when i create the producer function outside our class(like yours) it will work as shared flow.... so why does it happen?
Won't calling producer twice give two different producers which are emiting similar values ? Its not working for me, but it starts working on keeping a single call. Anyone know why
Just started kotlin flow series. Looking forward to scale up the knowledge in kotlin. Thank you for starting this series.
Thanks Raghu
loved the way you explain it, you are a very good teacher. Keep up the good work.
Thank you 😊
there's an issue with the implementation here @7:03. Everytime you call producer() function a new flow is being created. Instead for using shared flow, you need to use the same 'result' variable that you saved from calling producer() for both consumer with and without delay. Everytime when you call producer() function a new instance of flow is created and all the consumers get all the stream items
good catch, thats where I got rejected in OLA interview
He made the same error in previous video in this series as well.
One of the best series on flow & coroutine. Great job guys :)
awesome brother you cleared all my doubts.
Thank you so much for bringing this flow series.
Thanks Shaik
Simple explanation of flow and shared flow which is an alternative to live data, thanks man
❤️
thanku sir
🤘
Very well explained
Really well explained..
When teachers are great you no subject is hard ❤
Hello Sir.....how SharedFlow is differ from channels?
As u said in initial videos in order to have hot stream we can use channels then why do we get shareFlow which also gives hot stream ? Is it we want to get the advantage of flow operators, event and other utilities available in the flow which may not be present in channels ?
Easy explanation 👍👍
Thanks Muaz
explained it very well...
Thank you Curious Guy
Thank you so much.
Thank You 👨💻
Thank you
In your previous lecture you mentioned when we start using collect then only producer will start but with given example of delay it's starting before that
Hot vs Cold
Very nice videos.. 👍👍👍
Hi, Your video contents are very informative. Please don't get demotivated with the Like count.
Bas aap comment karte raho .. motivated rahenge 😁
Totally agree, nowadays people used to attract towards vulgarity and foul language content but there are people who appreciate your videos worth..keep sharing these informative video
Great video . Just one question , you are creating new instance of mutable shared flow for each collector. then how both of them share same flow
Got it...I should have created the flow object outside....it will work if you call the producer method once...
Copy paste mei miss hogya
Best
8:15 You called producer() twice which will return two different flow object. But why these two flows are acting like single object?
Because he is using SharedFlow and not the ordinary Flow. And SharedFlow provides a single object to each and every consumer
nice
Personal note: MutableSharedFlow (hot stream), replay functionality
Please mention use case. (like live secenerio in real time).
Why, Where , when
we should use it.
1:27 Aapne log statement hi comment kar diya vese bhi output nhi aayega kuch agar flow emit kar bhi rha ho
Important series for android developer's
Thank you 😃
❤🙏🙏
sir i have a doubt .... when i create this producer function inside mainactivity class it wont work as shared flow (it works as normal flow with cold nature)..but when i create the producer function outside our class(like yours) it will work as shared flow....
so why does it happen?
🤔
Won't calling producer twice give two different producers which are emiting similar values ? Its not working for me, but it starts working on keeping a single call. Anyone know why
Ek doubt. hai. Ye gaana aapne khud gaya hai?
mutable shared flow suggestions is not coming.
Can you give real example of mutablesharedflow ? Like where we can use in industry level app
bina delay lagaye ye code nhi chalega. collect nhi hota. aisa kyou bhai
because there should be some suspend points for coroutines to execute
I'm a Batman
bhai end me song ka link bhej dena motivation ke liye rakh leta hu
Release nahi kara 😐
@@CheezyCode sahi hai bhai