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

kevin.cianfarini

02/10/2020, 3:56 PM
I also don't know the performance implications of that since we're creating an extra channel and flow to wrap the one upstream
z

Zach Klippenstein (he/him) [MOD]

02/10/2020, 4:01 PM
It doesn’t create extra channels, those operators are “fused” and will only create one channel. If you look at the source, these operators (and many more) all create and/or modify a private
ChannelFlow
instance.
k

kevin.cianfarini

02/10/2020, 4:01 PM
oh wow! I didn't know that. You learn something new every day.
4 Views