Antoine Gagnon
05/12/2020, 4:18 PMJoel
05/12/2020, 4:24 PMJoel
05/12/2020, 4:24 PMaraqnid
05/12/2020, 4:26 PMStateFlow
added to coroutines 1.3.6 sounds relevant here - if you can push the variable updates to a MutableStateFlow
(or just use a MutableStateFlow
as the variable) then you can simply collect the flow to receive updates (similar to subscribing to a ConflatedBroadcastChannel
)Antoine Gagnon
05/12/2020, 4:27 PM