Colton Idle
04/14/2024, 6:38 PMflow {}
builder because I need to be able to emit from anywhere in my class. Is "SharedFlow" essentially the way to go here, or what?Zach Klippenstein (he/him) [MOD]
04/14/2024, 7:57 PMColton Idle
04/14/2024, 8:01 PMColton Idle
04/14/2024, 8:03 PMhot streams of event = sharedFlow
cold streams = flow
state = stateFlow
I think maybe the name of sharedFlow confuses me? why choose "shared" as a prefix there for that type of flow?Zach Klippenstein (he/him) [MOD]
04/14/2024, 8:38 PMZach Klippenstein (he/him) [MOD]
04/14/2024, 8:39 PMPablichjenkov
04/14/2024, 10:24 PMuli
04/15/2024, 7:34 AMColton Idle
04/15/2024, 12:53 PMBecause multiple collectors “share” what it produced - they each get every emission that occurs while they are subscribed💡 dont know why i didn't connect the dots... lol. thanks!!!
Colton Idle
04/15/2024, 12:55 PMContrast to a channel, where every emission is only given to a single consumerive never used channels 🙈 ... but from the name they would seem to be "hot" and allow multiple subscribers... basically sharedFlow. because by nature a TV channel is producing the video stream. even if no one is watching.
Zach Klippenstein (he/him) [MOD]
04/15/2024, 2:25 PMZach Klippenstein (he/him) [MOD]
04/15/2024, 2:26 PMZach Klippenstein (he/him) [MOD]
04/15/2024, 2:28 PMColton Idle
04/15/2024, 3:16 PM