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

william

01/22/2021, 12:08 AM
when using
MutableSharedFlow
is there any consequence for choosing a buffer of
Int.MAX_VALUE
? i.e. does it allocate an array of that size or something? often i would like some buffer to exist but don't have a definitive size in mind so i default to max value rather than something arbitrary between
0 .. MAX_VALUE
g

Guillermo Alcantara

01/22/2021, 12:20 AM
I think the buffer grows. Code has a method called
growBuffer
and there's a
bufferSize
property.
6 Views