Brendan Weinstein
12/18/2019, 11:27 PMLuke Sleeman
12/19/2019, 4:40 AMConflatedBroadcastChannel for things like val viewStateChannel: ConflatedBroadcastChannel<MainViewState>
We are hiding ours behind flows by doing stuff like:
private val statesChannel: ConflatedBroadcastChannel<ProfileState> = ConflatedBroadcastChannel()
val states: Flow<ProfileState> = statesChannel.asFlow()
ultimately we would like to use DataFlows ( https://github.com/Kotlin/kotlinx.coroutines/pull/1354 ) and do away with channels entirely. However data flow is still in draft statusLuke Sleeman
12/19/2019, 4:42 AMConflatedBroadcastChannel - we don't close either, but I feel kind of bad, and wonder if not closing it is somehow wrong 🤷♂️elizarov
12/19/2019, 7:16 AMLuke Sleeman
12/20/2019, 2:35 AMDataFlow stuff is progressing? I would really like to be able to move everything away from channels to flows - they seem a lot "safer" as they are not hot like channels. However we need that DataFlow as a replacement for CBC to make it all work 😁elizarov
12/20/2019, 6:46 AMLuke Sleeman
12/20/2019, 11:25 PMMike Nakhimovich
12/22/2019, 1:25 AM