https://kotlinlang.org logo
#coroutines
Title
# coroutines
n

ninad thakare

06/01/2021, 10:33 PM
How can I use channels as hot observers? I want to be able to send events to a channel regardless of anyone is listening or not. Omit events if no one is listening Bonus : The events are buffered if the consumers are consuming slower than the emitters are emitting
m

mbonnin

06/01/2021, 10:42 PM
Use a MutableSharedFlow ?
☝🏼 1
☝️ 4
j

julian

06/02/2021, 12:48 AM
Observers aren't hot. Emitters are.
☝️ 1
n

ninad thakare

06/02/2021, 5:31 AM
Hot observables*
6 Views