r4zzz4k
01/16/2018, 4:09 PMConflatedChannel
without removing it?louiscad
01/16/2018, 4:10 PMBroadcastChannel
and ConflatedBroadcastChannel
have a valueOrNull
and a `value`properties thoughr4zzz4k
01/16/2018, 4:15 PMBroadcastChannel
in this specific place so that I can pull values in several places, and this finding confirms the decision.r4zzz4k
01/16/2018, 4:19 PMval connected: ReceiveChannel<Boolean>
get() = connectedBroadcast.openSubscription()
private val connectedBroadcast = ConflatedBroadcastChannel<Boolean>()
This way I'm disallowing clients to modify underlying channel data. It seems that for just getting the .value
I have to put additional public property. This is quickly becoming ridiculous 🙂
(I was already pointed at https://youtrack.jetbrains.com/issue/KT-14663 earlier)