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

Marc Knaup

03/21/2019, 4:17 AM
Am I correct that
.produce
immediately starts its
block
even if there is no subscriber for the
ReceiveChannel
yet? If so, how can I avoid that?
o

octylFractal

03/21/2019, 4:19 AM
m

Marc Knaup

03/21/2019, 4:36 AM
That's what I thought. So I have to implement
ReceiveChannel
directly and make everything lazy up to the first call of any
ReceiveChannel
method - then dispatch to
produce
. That's kinda similar I hope 😅
6 Views