Also SAM conversion isn't working for FlowCollecto...
# coroutines
s
Also SAM conversion isn't working for FlowCollector interface for whatever reason
k
There is no SAM conversion though, as
FlowCollector
is a Kotlin interface. However, I believe what you’re looking for is the extension that takes
suspend (T) -> Unit
, but you’ll need to explicitly import
kotlinx.coroutines.flow.collect
👍 1
s
yeah. that's awesome thank you
👍 1
e
import kotlinx.coroutines.flow.*
and be happy.
😀 2
😄 3