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

jeff

01/13/2021, 11:01 PM
How can I have a SharedFlow buffer emissions that come while there are no subscribers?
p

Peter Ertl

01/13/2021, 11:17 PM
how about using Channel() instead?
j

jeff

01/13/2021, 11:29 PM
I'll try it!
p

Peter Ertl

01/13/2021, 11:33 PM
you can use CoroutineScope.produce(capacity = 123) { … } to emit values conveniently
3 Views